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

Commit f98d919

Browse files
committed
fix: install 'build' with pip
1 parent f33ab3e commit f98d919

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

Diff for: .github/workflows/continuous.yml

+9
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ jobs:
1414
sudo snap install --classic snapcraft
1515
snapcraft --destructive-mode
1616
17+
- name: Upload artifact
18+
uses: actions/[email protected]
19+
with:
20+
name: guiscrcpy-snap
21+
path: '*.snap'
22+
23+
1724
- name: Publish to Snap Store
1825
run: |
1926
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
27+
mkdir -p ~/.snapcraft
28+
cat token.txt | base64 --decode --ignore-garbage > ~/.snapcraft/snapcraft.cfg
2029
# if: github.ref == 'refs/heads/master'
2130
snapcraft upload --release=edge *.snap
2231

Diff for: snap/snapcraft.yaml

+6-7
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ apps:
3737
command-chain: &command-chain-common
3838
- bin/debian-multiarch-triplet-provider-launch
3939
- bin/classic-launch
40-
- bin/desktop-launch
4140
- bin/guiscrcpy
42-
desktop: share/applications/guiscrcpy.desktop
4341

4442
parts:
4543

@@ -61,12 +59,13 @@ parts:
6159
after: [classic-launch, debian-multiarch-triplet-provider-launch]
6260
# See 'snapcraft plugins'
6361
build-packages:
64-
- python3-build
62+
- python3-pip
6563
override-build: |
66-
python -m build .
67-
tar -xvf dist/*.tar.gz setup.py
68-
rm -rf dist
69-
snapcraftctl build
64+
python -m venv $SNAPCRAFT_PART_INSTALL
65+
source $SNAPCRAFT_PART_INSTALL/bin/activate
66+
pip install poetry
67+
python -m poetry install -E PySide2 --no-dev
68+
ls -al $SNAPCRAFT_PART_INSTALL
7069
plugin: python
7170
source: .
7271

0 commit comments

Comments
 (0)