Skip to content

Commit

Permalink
#45 Port bundle script to Powershell Core
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbechtold committed Jul 19, 2020
1 parent dd72ff7 commit 59d8aaa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jobs:
- name: Bundle DR1 executable / PyInstaller
run: |
resources\bundle-dr1.bat
resources\bundle-dr1.ps1
shell: pwsh
env:
DRTR_CODESIGN_CERTIFICATE_PASS: ${{ secrets.DRTR_CODESIGN_CERTIFICATE_PASS }}

Expand Down
7 changes: 7 additions & 0 deletions resources/bundle-dr1.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if (Test-Path dirtrally-lb.db) {
Remove-Item -Force dirtrally-lb.db
}
bin\sqlite3 -batch -init resources\setup-dr1.sql dirtrally-lb.db .exit
pyinstaller timerecord.spec --noconfirm --name timerecorder-dr1
pwsh.exe -wd resources resources\sign.ps1 -Exe ..\dist\timerecorder-dr1\timerecord.exe
exit $LASTEXITCODE

0 comments on commit 59d8aaa

Please sign in to comment.