Skip to content

Commit

Permalink
fix cli builds for mac and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
teemukataja committed Jan 11, 2024
1 parent 2b9e896 commit c445621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,25 @@ jobs:
pip install pyinstaller
pip install .
pip install pyinstaller-versionfile
- name: Build GUI artifact macOS
- name: Build CLI artifact macOS
if: matrix.os == 'macOS-latest'
run: |
pyinstaller --noconsole --onefile sdacli.py --name ${{ matrix.asset_name }}
pyinstaller --onefile sdacli.py --name ${{ matrix.asset_name }}
- name: Build CLI artifact Linux
if: matrix.os == 'ubuntu-latest'
run: |
echo '${{ secrets.DOCKER_PASSWORD }}' | docker login -u '${{ secrets.DOCKER_USERNAME }}' --password-stdin
docker pull cscfi/pyinstaller
docker run --rm -v "${PWD}:/builder" cscfi/pyinstaller --onefile sdacli.py --name ${{ matrix.asset_name }}
sudo chown -R $USER:$GROUP dist/
- name: Build GUI artifact windows
- name: Build CLI artifact windows
if: matrix.os == 'windows-latest'
shell: bash
run: |
TAG=${{ github.ref_name }}
VERSION=${TAG#v}
create-version-file versionfile_cli.yml --outfile file_version_info.txt --version $VERSION
pyinstaller --noconsole --onefile sdacli.py --name ${{ matrix.asset_name }} --version-file file_version_info.txt
pyinstaller --onefile sdacli.py --name ${{ matrix.asset_name }} --version-file file_version_info.txt
- name: Create temporary certificate file
if: matrix.os == 'windows-latest'
run: |
Expand Down

0 comments on commit c445621

Please sign in to comment.