Merge pull request #2443 from Kingtous/master
feat: add windows sign config
This commit is contained in:
commit
f624f74991
41
.github/workflows/flutter-nightly.yml
vendored
41
.github/workflows/flutter-nightly.yml
vendored
@ -41,6 +41,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Replace engine with rustdesk custom flutter engine
|
- name: Replace engine with rustdesk custom flutter engine
|
||||||
run: |
|
run: |
|
||||||
@ -88,12 +89,41 @@ jobs:
|
|||||||
- name: Build rustdesk
|
- name: Build rustdesk
|
||||||
run: python3 .\build.py --portable --hwcodec --flutter
|
run: python3 .\build.py --portable --hwcodec --flutter
|
||||||
|
|
||||||
- name: Rename rustdesk
|
- name: Sign rustdesk files
|
||||||
|
uses: GermanBluefox/code-sign-action@v7
|
||||||
|
with:
|
||||||
|
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
|
||||||
|
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
|
||||||
|
certificatesha1: '${{ secrets.WINDOWS_PFX_SHA1_THUMBPRINT }}'
|
||||||
|
# certificatename: '${{ secrets.CERTNAME }}'
|
||||||
|
folder: './flutter/build/windows/runner/Release/'
|
||||||
|
recursive: true
|
||||||
|
|
||||||
|
- name: Build self-extracted executable
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
for name in rustdesk*??-install.exe; do
|
pushd ./libs/portable
|
||||||
mv "$name" "${name%%-install.exe}-${{ matrix.job.target }}.exe"
|
python3 ./generate.py -f ../../flutter/build/windows/runner/Release/ -o . -e ../../flutter/build/windows/runner/Release/rustdesk.exe
|
||||||
done
|
popd
|
||||||
|
mkdir -p ./SignOutput
|
||||||
|
mv ./target/release/rustdesk-portable-packer.exe ./SignOutput/rustdesk-${{ env.VERSION }}-${{ matrix.job.target }}.exe
|
||||||
|
|
||||||
|
# - name: Rename rustdesk
|
||||||
|
# shell: bash
|
||||||
|
# run: |
|
||||||
|
# for name in rustdesk*??-install.exe; do
|
||||||
|
# mv "$name" ./SignOutput/"${name%%-install.exe}-${{ matrix.job.target }}.exe"
|
||||||
|
# done
|
||||||
|
|
||||||
|
- name: Sign rustdesk self-extracted file
|
||||||
|
uses: GermanBluefox/code-sign-action@v7
|
||||||
|
with:
|
||||||
|
certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
|
||||||
|
password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
|
||||||
|
certificatesha1: '${{ secrets.WINDOWS_PFX_SHA1_THUMBPRINT }}'
|
||||||
|
# certificatename: '${{ secrets.WINDOWS_PFX_NAME }}'
|
||||||
|
folder: './SignOutput'
|
||||||
|
recursive: false
|
||||||
|
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@ -101,7 +131,7 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
tag_name: ${{ env.TAG_NAME }}
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
files: |
|
files: |
|
||||||
rustdesk-*.exe
|
./SignOutput/rustdesk-*.exe
|
||||||
|
|
||||||
build-for-macOS:
|
build-for-macOS:
|
||||||
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) [${{ matrix.job.extra-build-args }}]
|
name: ${{ matrix.job.target }} (${{ matrix.job.os }}) [${{ matrix.job.extra-build-args }}]
|
||||||
@ -128,6 +158,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
channel: "stable"
|
channel: "stable"
|
||||||
flutter-version: ${{ env.FLUTTER_VERSION }}
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
||||||
|
cache: true
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user