Update dotnet build lines

This commit is contained in:
Natsumi
2025-09-04 04:24:54 +12:00
parent 6aa544ea7a
commit fd217f12b4
3 changed files with 7 additions and 6 deletions

View File

@@ -37,9 +37,7 @@ jobs:
echo "${{ needs.set_version.outputs.version }}" > Version
cat Version
- name: Build Cef .NET Application
run: dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
- name: Build Cef .NET Application
run: dotnet build DBMerger\DBMerger.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
run: dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:PlatformTarget=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
- name: Upload Cef dotnet artifacts
uses: actions/upload-artifact@v4
with:
@@ -60,7 +58,7 @@ jobs:
echo "${{ needs.set_version.outputs.version }}" > Version
cat Version
- name: Build Electron x64 .NET Application
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:PlatformTarget=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
- name: Upload Electron x64 dotnet artifacts
uses: actions/upload-artifact@v4
with:
@@ -88,7 +86,7 @@ jobs:
echo "${{ needs.set_version.outputs.version }}" > Version
cat Version
- name: Build Electron x64 .NET Application
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
run: dotnet build 'Dotnet/VRCX-Electron.csproj' -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:PlatformTarget=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
- name: Upload Electron x64 .NET artifacts
uses: actions/upload-artifact@v4
with:

View File

@@ -1,4 +1,4 @@
@echo off
cd ../../
dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
dotnet build Dotnet\VRCX-Cef.csproj -p:Configuration=Release -p:WarningLevel=0 -p:Platform=x64 -p:PlatformTarget=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m -a x64 --self-contained
pause

View File

@@ -13,6 +13,9 @@ try {
// Remove time part from version
version = version.substring(0, index).replaceAll('-', '.');
}
if (!version || version === 'Nightly Build') {
version = new Date().toISOString().split('T')[0].replaceAll('-', '.');
}
} catch (err) {
console.error('Error reading Version file:', err);
process.exit(1);