new: auto replace signed exec

This commit is contained in:
Hiddify
2024-03-04 17:45:45 +01:00
parent d87e207771
commit a6ea882af2
4 changed files with 41 additions and 12 deletions

View File

@@ -1,5 +1,10 @@
[![Release Downloads](https://img.shields.io/github/downloads/hiddify/hiddify-next/RELEASE_TAG/total?style=flat-square&logo=github)](https://img.shields.io/github/downloads/hiddify/hiddify-next/RELEASE_TAG/)
<a href="https://apps.microsoft.com/detail/Hiddify/9pdfnl3qv2s5?mode=mini" target="_blank">
<img src="https://github.com/hiddify/hiddify-next/assets/114227601/88210921-4d33-46e5-ac6a-89b4ffe13ae8" width="200">
</a>
**Release Highlights:**
-

View File

@@ -0,0 +1,25 @@
name: Upload store MSIX to release
permissions:
contents: write
on:
release:
types: [released] # Run the action when a GitHub release is published
schedule:
- cron: '0 */6 * * *' # Run the action every 6 hours
workflow_dispatch: # Manually run the action
jobs:
upload-store-msix-to-release:
runs-on: ubuntu-latest
steps:
- name: Upload store MSIX to release
uses: JasonWei512/Upload-Microsoft-Store-MSIX-Package-to-GitHub-Release@v1
with:
store-id: 9pdfnl3qv2s5
token: ${{ secrets.GITHUB_TOKEN }}
asset-name-pattern: Hiddify-Windows-Setup-x64 # Optional

View File

@@ -182,16 +182,15 @@ jobs:
tree
.\scripts\package_windows.ps1
# - name: Code Sign
# if: ${{ inputs.upload-artifact && startsWith(matrix.platform,'windows') }}
# uses: dlemstra/code-sign-action@v1
# with:
# certificate: '-----BEGIN CERTIFICATE-----\n${{ secrets.WINDOWS_SIGNING_KEY }}-----END CERTIFICATE-----\n'
# password: '${{ secrets.WINDOWS_SIGNING_PASSWORD }}'
# folder: 'out'
# recursive: true
# description: 'Hiddify'
- name: Code Sign
if: ${{ inputs.upload-artifact && startsWith(matrix.platform,'windows') }}
uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.WINDOWS_SIGNING_KEY }}'
password: '${{ secrets.WINDOWS_SIGNING_PASSWORD }}'
folder: 'out'
recursive: true
description: 'Hiddify'
- name: Copy to out Android APK
if: matrix.platform == 'android-apk'