mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-28 03:03:47 +02:00
Update action
This commit is contained in:
26
.github/workflows/github_actions.yml
vendored
26
.github/workflows/github_actions.yml
vendored
@@ -12,24 +12,27 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.version.outputs.version }}
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
date: ${{ steps.version.outputs.date }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- id: version
|
- id: version
|
||||||
run: |
|
run: |
|
||||||
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
git_hash=$(git rev-parse --short "$GITHUB_SHA")
|
||||||
export FILENAME="$(date '+%Y-%m-%dT%H.%M')-${git_hash}"
|
export FILENAME="$(date '+%Y-%m-%dT%H.%M')-${git_hash}"
|
||||||
echo "::set-output name=version::${FILENAME}"
|
export DATE="$(date '+%Y.%m.%d')"
|
||||||
|
echo "version=${FILENAME}" >> $GITHUB_OUTPUT
|
||||||
|
echo "date=${DATE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build_dotnet_windows:
|
build_dotnet_windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: set_version
|
needs: set_version
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '9.0.x'
|
||||||
- name: Set version
|
- name: Set version
|
||||||
@@ -51,10 +54,10 @@ jobs:
|
|||||||
needs: set_version
|
needs: set_version
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup .NET 9
|
- name: Setup .NET 9
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: '9.0.x'
|
dotnet-version: '9.0.x'
|
||||||
- name: Set version
|
- name: Set version
|
||||||
@@ -74,16 +77,16 @@ jobs:
|
|||||||
needs: [set_version, build_dotnet_linux]
|
needs: [set_version, build_dotnet_linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set version
|
- name: Set version
|
||||||
run: |
|
run: |
|
||||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||||
cat Version
|
cat Version
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: lts/*
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build Cef-html
|
- name: Build Cef-html
|
||||||
@@ -115,8 +118,11 @@ jobs:
|
|||||||
[set_version, build_node, build_dotnet_windows, build_dotnet_linux]
|
[set_version, build_node, build_dotnet_windows, build_dotnet_linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set version
|
||||||
|
run: |
|
||||||
|
echo "!define PRODUCT_VERSION_FROM_FILE \"${{ needs.set_version.outputs.date }}.0\"" > Installer/version_define.nsh
|
||||||
- name: Install 7-zip and makensis
|
- name: Install 7-zip and makensis
|
||||||
run: sudo apt update && sudo apt install -y p7zip-full nsis nsis-pluginapi
|
run: sudo apt update && sudo apt install -y p7zip-full nsis nsis-pluginapi
|
||||||
- name: Set plugin permissions
|
- name: Set plugin permissions
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ obj1/
|
|||||||
.idea/
|
.idea/
|
||||||
*.log
|
*.log
|
||||||
*.DotSettings.user
|
*.DotSettings.user
|
||||||
|
Installer/version_define.nsh
|
||||||
@@ -1 +1 @@
|
|||||||
!define PRODUCT_VERSION_FROM_FILE "2025.05.09.0"
|
!define PRODUCT_VERSION_FROM_FILE "2025.01.01.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user