mirror of
https://github.com/3proxy/3proxy.git
synced 2026-06-13 11:00:11 +08:00
Compare commits
3 Commits
4ebf34c22b
...
41c120c527
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41c120c527 | ||
|
|
cadf0e7909 | ||
|
|
867a26bfa3 |
14
.github/workflows/build-win64.yml
vendored
14
.github/workflows/build-win64.yml
vendored
@ -28,7 +28,6 @@ jobs:
|
|||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v3
|
uses: microsoft/setup-msbuild@v3
|
||||||
- name: make Windows MSVC
|
- name: make Windows MSVC
|
||||||
if: ${{ startsWith(matrix.target, 'windows') }}
|
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
||||||
@ -39,6 +38,17 @@ jobs:
|
|||||||
echo "volatile char VerSion[]=^"3APA3A-3proxy-Internal-Build: 3proxy-%RELEASE%-%NOW%\r\nCode certificate: https://3proxy.org/3proxy.cer\r\n^";" >>src/3proxy.c
|
echo "volatile char VerSion[]=^"3APA3A-3proxy-Internal-Build: 3proxy-%RELEASE%-%NOW%\r\nCode certificate: https://3proxy.org/3proxy.cer\r\n^";" >>src/3proxy.c
|
||||||
echo %NOW% / %RELEASE% / %BUILDDATE% / %VERSION%
|
echo %NOW% / %RELEASE% / %BUILDDATE% / %VERSION%
|
||||||
nmake /F Makefile.msvc
|
nmake /F Makefile.msvc
|
||||||
|
- name: Decode Certificate
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.WINDOWS_CERTIFICATE }}")
|
||||||
|
[System.IO.File]::WriteAllBytes("${{ github.workspace }}\cert.pfx", $pfx_cert_byte)
|
||||||
|
- name: Sign
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$signtool = (Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\signtool.exe" | Sort-Object { [version]$_.Directory.Parent.Name } -Descending | Select-Object -First 1).FullName
|
||||||
|
& $signtool sign /f "${{ github.workspace }}\cert.pfx" /p "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 "bin\3proxy.exe"
|
||||||
|
& $signtool sign /f "${{ github.workspace }}\cert.pfx" /p "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 "bin\3proxy_crypt.exe"
|
||||||
- name: make dist dir
|
- name: make dist dir
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
@ -56,7 +66,7 @@ jobs:
|
|||||||
mkdir dist\3proxy\doc\devel
|
mkdir dist\3proxy\doc\devel
|
||||||
copy bin\3proxy.exe dist\3proxy\bin64\
|
copy bin\3proxy.exe dist\3proxy\bin64\
|
||||||
copy bin\*.dll dist\3proxy\bin64\
|
copy bin\*.dll dist\3proxy\bin64\
|
||||||
copy bin\mycrypt.exe dist\3proxy\bin64\
|
copy bin\3proxy_crypt.exe dist\3proxy\bin64\
|
||||||
copy cfg\*.* dist\3proxy\cfg\
|
copy cfg\*.* dist\3proxy\cfg\
|
||||||
copy cfg\sql\*.* dist\3proxy\cfg\sql\
|
copy cfg\sql\*.* dist\3proxy\cfg\sql\
|
||||||
copy doc\ru\*.* dist\3proxy\doc\ru\
|
copy doc\ru\*.* dist\3proxy\doc\ru\
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user