Skip to content

Commit

Permalink
Test password
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jun 23, 2022
1 parent 21168b4 commit 2370caf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ on:

jobs:
build:
environment: build
runs-on: ${{ github.event.inputs.os || inputs.os }}

steps:
Expand All @@ -51,6 +52,7 @@ jobs:
- name: Modify PATH
run: |
echo "C:\msys64\usr\bin" >> $env:GITHUB_PATH
echo "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64" >> $env:GITHUB_PATH
- uses: actions/setup-python@v3
with:
Expand All @@ -64,6 +66,14 @@ jobs:
- name: Install windows dependencies
uses: ./.github/actions/windows_dependencies

- name: Restore certificate
shell: bash
env:
CERTIFICATE_BASE64: ${{ secrets.WINDOWS_CERTIFICATE }}
run: |
echo $CERTIFICATE_BASE64 | base64 --decode > certificate.pfx
ls -l certificate.pfx
- name: Prepare files
env:
SENTRY_URL: ${{secrets.SENTRY_URL}}
Expand All @@ -75,10 +85,11 @@ jobs:
- name: Collect required binaries
shell: cmd
run: |
mkdir C:\build\
mkdir C:\build\certs
wget -q https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe
move vc_redist.x64.exe C:\build\vc_redist_140.exe
copy C:\Windows\system32\libsodium.dll C:\build\
move certificate.pfx C:\build\certs\
- name: Install NSIS plugins
env:
Expand Down Expand Up @@ -107,8 +118,8 @@ jobs:
QT_QPA_PLATFORM: offscreen
QT_ACCESSIBILITY: 1
QT_IM_MODULE: ibus
SKIP_SIGNING_TRIBLER_BINARIES: 'yes please'
LOG_LEVEL: INFO
PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
shell: cmd
run: |
./build/win/makedist_win.bat
Expand Down
2 changes: 2 additions & 0 deletions build/win/makedist_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,5 @@ REM Arno: Sign installer
if not defined SKIP_SIGNING_TRIBLER_BINARIES (
signtool.exe sign /f c:\build\certs\certificate.pfx /p "%PASSWORD%" /d "Tribler" /t "http:https://timestamp.digicert.com" Tribler_*.exe
)

exit 0

0 comments on commit 2370caf

Please sign in to comment.