This repository was archived by the owner on Dec 29, 2023. It is now read-only.
File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 14
14
sudo snap install --classic snapcraft
15
15
snapcraft --destructive-mode
16
16
17
+ - name : Upload artifact
18
+ uses : actions/upload-artifact@v2
19
+ with :
20
+ name : guiscrcpy-snap
21
+ path : ' guiscrcpy_*.snap'
22
+
23
+
17
24
- name : Publish to Snap Store
18
25
run : |
19
26
echo "${{ secrets.SNAP_DEPLOY_TOKEN }}" > token.txt
27
+ mkdir -p ~/.snapcraft
28
+ cat token.txt | base64 --decode --ignore-garbage > ~/.snapcraft/snapcraft.cfg
20
29
# if: github.ref == 'refs/heads/master'
21
30
snapcraft upload --release=edge *.snap
22
31
Original file line number Diff line number Diff line change 37
37
command-chain : &command-chain-common
38
38
- bin/debian-multiarch-triplet-provider-launch
39
39
- bin/classic-launch
40
- - bin/desktop-launch
41
40
- bin/guiscrcpy
42
- desktop : share/applications/guiscrcpy.desktop
43
41
44
42
parts :
45
43
@@ -61,12 +59,13 @@ parts:
61
59
after : [classic-launch, debian-multiarch-triplet-provider-launch]
62
60
# See 'snapcraft plugins'
63
61
build-packages :
64
- - python3-build
62
+ - python3-pip
65
63
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
70
69
plugin : python
71
70
source : .
72
71
You can’t perform that action at this time.
0 commit comments