Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Manual Package

Manual Package #53

name: Manual Package
on:
workflow_dispatch:
jobs:
Build:
name: Build
runs-on: windows-latest
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: Zip package
shell: cmd
run: 7z a -r .\Spicetify-Easyinstall-manual-${{ steps.short-sha.outputs.sha }}.zip .\Spicetify-Easyinstall\dist\windows\Spicetify-Easyinstall\*
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.1
with:
name: Spicetify-Easyinstall-manual-${{ steps.short-sha.outputs.sha }}
path: ./Spicetify-Easyinstall-manual-${{ steps.short-sha.outputs.sha }}.zip
retention-days: 1