From ff795e5a0bbb50611a086d3ab47c5e9327583236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C=E8=A7=82=E5=AF=9F=E6=97=A5=E5=BF=97?= Date: Sat, 4 May 2024 20:08:15 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7657c13 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + +jobs: + build_winodws: + name: Build Windows Version + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + architecture: x64 + - name: Install dependencies + run: | + python -m pip install poetry + poetry install + poetry run python -m pip install nuitka + - name: Build + run: | + poetry run python -m nuitka main.py --standalone --follow-imports --include-data-dir=assets=assets --include-data-files=config.toml=config.toml --include-data-files=agent.js=agent.js + - name: Generate ZIP + run: | + ren main.dist AppleMusicDecrypt + tar -a -cf AppleMusicDecrypt.zip AppleMusicDecrypt + - name: Upload CLI artifact + uses: actions/upload-artifact@v2.1.4 + with: + name: AppleMusicDecrypt-Windows + path: AppleMusicDecrypt.zip +