Skip to content

Commit 3db7fa8

Browse files
committed
Squashed commit of the following:
commit 6a92943 Author: Nick Logozzo <nlogozzo225@gmail.com> Date: Sun Feb 22 16:28:04 2026 -0500 Update windows.yml commit 8c8d38c Author: Nick Logozzo <nlogozzo225@gmail.com> Date: Sun Feb 22 16:19:41 2026 -0500 fix: Better zip file structure commit c3c36d8 Author: Nick Logozzo <nlogozzo225@gmail.com> Date: Sun Feb 22 16:16:49 2026 -0500 fix: Build commit a1b4885 Author: Nick Logozzo <nlogozzo225@gmail.com> Date: Sun Feb 22 16:13:50 2026 -0500 chore: Cleanup commit 70584d5 Author: Nick Logozzo <nlogozzo225@gmail.com> Date: Sun Feb 22 16:07:05 2026 -0500 feat: Windows portable build
1 parent 23c7286 commit 3db7fa8

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/windows.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/setup-dotnet@v5
4141
with:
4242
dotnet-version: '10.0.x'
43-
- name: "Setup PATH"
43+
- name: "Setup Environment"
4444
shell: pwsh
4545
run: echo "${{ steps.msys2.outputs.msys2-location }}\${{ matrix.variant.subsys }}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4646
- name: "Restore"
@@ -57,7 +57,25 @@ jobs:
5757
Invoke-WebRequest https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/10.0.2/windowsdesktop-runtime-10.0.2-win-${{ matrix.variant.arch }}.exe -OutFile dotnet.exe
5858
Invoke-WebRequest https://aka.ms/windowsappsdk/1.8/latest/windowsappruntimeinstall-${{ matrix.variant.arch }}.exe -OutFile windowsappruntimeinstall.exe
5959
iscc setup.iss
60+
- name: "Portable"
61+
shell: pwsh
62+
run: |
63+
$publishDir = "${{ env.PROJECT_NAME }}\bin\${{ matrix.variant.arch }}\Release\net10.0-windows10.0.19041.0\win-${{ matrix.variant.arch }}\publish"
64+
$portableDir = "${{ github.workspace }}\portable"
65+
New-Item -ItemType Directory -Force -Path "$portableDir\Release" | Out-Null
66+
Copy-Item -Path "$publishDir\*" -Destination "$portableDir\Release" -Recurse
67+
$WshShell = New-Object -comObject WScript.Shell
68+
$Shortcut = $WshShell.CreateShortcut("$portableDir\Parabolic.lnk")
69+
$Shortcut.TargetPath = "Release\${{ env.PROJECT_NAME }}.exe"
70+
$Shortcut.Arguments = "--portable"
71+
$Shortcut.Save()
72+
New-Item -ItemType Directory -Force -Path "${{ github.workspace }}\Releases" | Out-Null
73+
Compress-Archive -Path "$portableDir\*" -DestinationPath "${{ github.workspace }}\Releases\${{ env.PROJECT_NAME }}-portable-${{ matrix.variant.arch }}.zip"
6074
- uses: actions/upload-artifact@v4
6175
with:
6276
path: ${{ github.workspace }}/inno/${{ env.INSTALLER_NAME }}.exe
6377
name: ${{ env.INSTALLER_NAME }}-${{ matrix.variant.arch }}
78+
- uses: actions/upload-artifact@v4
79+
with:
80+
path: ${{ github.workspace }}/Releases/${{ env.PROJECT_NAME }}-portable-${{ matrix.variant.arch }}.zip
81+
name: ${{ env.PROJECT_NAME }}-portable-${{ matrix.variant.arch }}

Nickvision.Application.WinUI/Nickvision.Application.WinUI.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
</PropertyGroup>
5858
<PropertyGroup>
5959
<ApplicationIcon>Assets\org.nickvision.application.ico</ApplicationIcon>
60-
<Version>2025.12.0</Version>
6160
</PropertyGroup>
6261

6362
<Import Project="..\Nickvision.Common.targets" />

0 commit comments

Comments
 (0)