User gets an error now when they try to add a file that is not an arc… #149
This file contains hidden or 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: Build | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/[email protected] | |
with: | |
python-version: '>=3.10' | |
- name: Install dependencies | |
run: | | |
pip install pyinstaller -r requirements.txt | |
- name: Build with PyInstaller | |
run: | | |
pyinstaller --add-binary "7z/7z.exe;7z" --onefile main.pyw --name DazContentInstaller | |
- name: Create package directory | |
run: mkdir -p dist/DazContentInstaller | |
- name: Create logger directory | |
run: mkdir -p dist/DazContentInstaller/logs | |
- name: Copy config.ini file | |
run: cp config.ini dist/DazContentInstaller/ | |
- name: Move the built binary | |
run: mv dist/DazContentInstaller.exe dist/DazContentInstaller/ | |
- name: Upload Artifacts | |
uses: actions/[email protected] | |
with: | |
name: DazContentInstaller | |
path: dist/ |