This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (53 loc) · 1.7 KB
/
package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Package
on:
push:
branches: [ Spicetify-v2 ]
jobs:
Build:
name: Build
runs-on: windows-latest
if: "contains(github.event.head_commit.message, '+ PACKAGE')"
steps:
- name: Setup Python
uses: actions/setup-python@v5.0.0
with:
python-version: '3.11.2'
- name: Set Git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Clone PyInstaller source
uses: actions/checkout@v4.1.1
with:
repository: 'pyinstaller/pyinstaller'
ref: 'v6.4.0'
path: './pyinstaller'
- name: Build PyInstaller bootloader
run: |
cd ./pyinstaller/bootloader
python ./waf all --target-arch=64bit
- name: Install PyInstaller
run: |
cd ./pyinstaller
python -m pip install wheel
pip install .
- name: Clone repo
uses: actions/checkout@v4.1.1
with:
path: './Spicetify-Easyinstall'
- name: Build
run: |
cd .\Spicetify-Easyinstall
python -m pip install -r requirements.txt
pyinstaller --clean -y --dist dist\windows --workpath tmp build.spec
- name: Get short SHA string
uses: benjlevesque/short-sha@v3.0
id: short-sha
with:
length: 7
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: Spicetify-Easyinstall-manual-${{ steps.short-sha.outputs.sha }}
path: .\Spicetify-Easyinstall\dist\windows\Spicetify-Easyinstall\*
retention-days: 1