-同步Vt最新版本 截至到20250217.094000 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Windows | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- windows | |
paths: | |
- version.py | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
permissions: write-all | |
outputs: | |
output1: ${{ steps.get_version.outputs.KEY }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: 'Vertex' | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.21.3 | |
- name: Install Dependencies | |
id: get_version | |
run: | | |
ls | |
cd Vertex | |
$version = Get-Content "./version.py" | |
echo "KEY=$version" >> $env:GITHUB_OUTPUT | |
ls | |
Remove-Item -Path .\webui -Recurse -Force | |
cd app | |
Copy-Item -Path "./config/sql.db" -Destination "./db" | |
ls | |
echo ============= | |
cd .. | |
ls | |
npm i --save-dev | |
# cd webui | |
# npm i --legacy-peer-deps --save-dev | |
#- name: build | |
# run: | | |
# mkdir webui | |
# ls | |
# mv ./Vertex/app/static/* ./webui/ | |
# cd webui | |
# ls | |
# - name: Install Inno Setup Compiler | |
# uses: pwall2222/inno-setup-download@v0.0.4 | |
- name: Install Inno Setup Compiler | |
run: | | |
Invoke-WebRequest https://jrsoftware.org/download.php/is.exe?site=1 -OutFile is.exe | |
Start-Process is.exe -ArgumentList "/VERYSILENT", "/NORETART", "/SP-","/SUPPRESSMSGBOXES","/DIR=C:\Users\runneradmin\AppData\Local\Temp\inno" -NoNewWindow -Wait | |
- name: COPY NODE | |
run: | | |
mkdir Node14 | |
cd Node14 | |
Copy-Item -Path "C:\hostedtoolcache\windows\node\14.21.3\x64\*" -Destination . | |
ls | |
- name: 拉取exe代码 | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
ref: master | |
repository: ${{ secrets.REPO }} | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
path: 'Inno-Setup-Vertex' | |
- name: Compile Inno Setup Script | |
run: | | |
echo ==== | |
ls | |
cd Inno-Setup-Vertex | |
Copy-Item -Path ".\ChineseSimplified.isl" -Destination "c:\program files (x86)\inno setup 6\Languages" | |
echo "${{ steps.get_version.outputs.KEY }}" | |
iscc "/DMyAppVersion=${{ steps.get_version.outputs.KEY }}" build.iss | |
- name: Create release and upload asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: ${{ steps.get_version.outputs.KEY }} | |
tag_name: ${{ steps.get_version.outputs.KEY }} | |
body: ${{ github.event.commits[0].message }} | |
draft: false | |
make_latest: true | |
files: ./Inno-Setup-Vertex/exe/build/*.exe |