Skip to content

Update pyinstaller requirement from 6.5.0 to 6.6.0 #177

Update pyinstaller requirement from 6.5.0 to 6.6.0

Update pyinstaller requirement from 6.5.0 to 6.6.0 #177

Workflow file for this run

name: "Build and test"
on:
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, [self-hosted, Linux], [self-hosted, Windows, noramdisk]]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: "Create executable with pyinstaller"
shell: bash
run: |
python3 -m venv venv
if [ "$RUNNER_OS" == "Windows" ]; then
./venv/Scripts/activate.bat
else
source venv/bin/activate
fi
pip3 install pip-tools
python3 -m piptools compile -o requirements.txt pyproject.toml
pip3 install -r requirements.txt
pyinstaller --onefile --icon=updater.ico updater.py
- name: "Check if updater works correctly"
run: |
mkdir Release
mkdir -p Release/Updater
mv dist/* Release/Updater/
mkdir -p Release/ImperatorToCK3
mv Release/Updater Release/Updater-running
cd Release/Updater-running
if [ "$RUNNER_OS" == "Windows" ]; then
./updater.exe "https://github.com/ParadoxGameConverters/ImperatorToCK3/releases/download/6.1.3/ImperatorToCK3-win-x64.zip" "ImperatorToCK3/"
elif [ "$RUNNER_OS" == "macOS" ]; then
./updater "https://github.com/ParadoxGameConverters/ImperatorToCK3/releases/download/6.1.3/ImperatorToCK3-osx-x64.tgz" "ImperatorToCK3/"
elif [ "$RUNNER_OS" == "Linux" ]; then
./updater "https://github.com/ParadoxGameConverters/ImperatorToCK3/releases/download/6.1.3/ImperatorToCK3-linux-x64.tgz" "ImperatorToCK3/"
else
echo "Unknown OS: $RUNNER_OS"
exit 1
fi
shell: bash