Skip to content

Commit

Permalink
Merge pull request #48 from CSCfi/fix/build
Browse files Browse the repository at this point in the history
fix cli builds for mac and windows
  • Loading branch information
teemukataja authored Jan 11, 2024
2 parents 2b9e896 + c445621 commit 80e6d0d
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 80e6d0d

Please sign in to comment.