mirror of
https://github.com/3proxy/3proxy.git
synced 2026-06-13 11:00:11 +08:00
Update build-win64.yml
This commit is contained in:
parent
2cb6297968
commit
867a26bfa3
13
.github/workflows/build-win64.yml
vendored
13
.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,16 @@ 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: |
|
||||||
|
'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "${{ github.workspace }}\cert.pfx" /p "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" /tr http://digicert.com /td sha256 /fd sha256 "bin\3proxy.exe"
|
||||||
|
'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "${{ github.workspace }}\cert.pfx" /p "${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}" /tr http://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 +65,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