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

Commit 4834262

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

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Diff for: .github/workflows/continuous.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- name: Publish to Snap Store
1818
run: |
1919
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
20+
cat token.txt | base64 --decode --ignore-garbage > ~/.snapcraft/snapcraft.cfg
2021
# if: github.ref == 'refs/heads/master'
2122
snapcraft upload --release=edge *.snap
2223

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)