This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
Text Build #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Text Build | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
submodules: true | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Set Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- uses: Nuitka/Nuitka-Action@main | |
name: Build Windows version | |
with: | |
script-name: main.py | |
onefile: true | |
enable-plugins: pyside6 | |
disable-console: true | |
windows-icon-from-ico: src/Ui/resource/image/icon.ico | |
output-filename: "NapCat-Desktop" | |
- name: Enable Developer Command Prompt | |
uses: ilammy/msvc-dev-cmd@v1.13.0 | |
- name: Add manifest file | |
run: | | |
mt.exe -manifest ./assets/NapCat-Desktop.exe.manifest -outputresource:./build/NapCat-Desktop.exe;1 | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: NapCat-Desktop | |
path: ./build/NapCat-Desktop.exe |