Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
fix: install 'build' with pip
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Nov 6, 2021
1 parent f33ab3e commit f98d919
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ jobs:
sudo snap install --classic snapcraft
snapcraft --destructive-mode
- name: Upload artifact
uses: actions/[email protected]
with:
name: guiscrcpy-snap
path: '*.snap'


- name: Publish to Snap Store
run: |
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
mkdir -p ~/.snapcraft
cat token.txt | base64 --decode --ignore-garbage > ~/.snapcraft/snapcraft.cfg
# if: github.ref == 'refs/heads/master'
snapcraft upload --release=edge *.snap
Expand Down
13 changes: 6 additions & 7 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ apps:
command-chain: &command-chain-common
- bin/debian-multiarch-triplet-provider-launch
- bin/classic-launch
- bin/desktop-launch
- bin/guiscrcpy
desktop: share/applications/guiscrcpy.desktop

parts:

Expand All @@ -61,12 +59,13 @@ parts:
after: [classic-launch, debian-multiarch-triplet-provider-launch]
# See 'snapcraft plugins'
build-packages:
- python3-build
- python3-pip
override-build: |
python -m build .
tar -xvf dist/*.tar.gz setup.py
rm -rf dist
snapcraftctl build
python -m venv $SNAPCRAFT_PART_INSTALL
source $SNAPCRAFT_PART_INSTALL/bin/activate
pip install poetry
python -m poetry install -E PySide2 --no-dev
ls -al $SNAPCRAFT_PART_INSTALL
plugin: python
source: .

Expand Down

0 comments on commit f98d919

Please sign in to comment.