diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 2c5c9cb6..f3e68601 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -4,6 +4,22 @@ on: - push jobs: + Snap: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install snapcraft + run: | + sudo snap install --classic snapcraft + snapcraft --destructive-mode + + - name: Publish to Snap Store + run: | + echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt + # if: github.ref == 'refs/heads/master' + snapcraft upload --release=edge *.snap + Wheel: runs-on: ubuntu-latest steps: diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 19fb5da7..0e90d3d7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -53,40 +53,20 @@ parts: stage-snaps: - classic-launch - # Remote part for support of various desktop technologies - # Refer: https://github.com/ubuntu/snapcraft-desktop-helpers/blob/master/snapcraft.yaml - desktop-qt5: - build-packages: - - build-essential - - qtbase5-dev - - dpkg-dev - make-parameters: - - FLAVOR=qt5 - plugin: make - source: https://github.com/ubuntu/snapcraft-desktop-helpers.git - source-subdir: qt - stage-packages: - - libxkbcommon0 - - ttf-ubuntu-font-family - - dmz-cursor-theme - - light-themes - - adwaita-icon-theme - - gnome-themes-standard - - shared-mime-info - - libqt5gui5 - - libgdk-pixbuf2.0-0 - - libqt5svg5 - - try: - - appmenu-qt5 - - locales-all - - xdg-user-dirs - - fcitx-frontend-qt5 - guiscrcpy: stage-snaps: - scrcpy - after: [desktop-qt5, classic-launch, debian-multiarch-triplet-provider-launch] + stage-packages: + - freeglut3 + after: [classic-launch, debian-multiarch-triplet-provider-launch] # See 'snapcraft plugins' + build-packages: + - python3-pip + override-build: | + python -m pep517.build . + tar -xvf dist/*.tar.gz setup.py + rm -rf dist + snapcraftctl build plugin: python python-version: python3 source: .