Skip to content

Commit 3e3ceb7

Browse files
committed
Update release artifact naming and automate zip uploads
- Change release artifact names to MouseJiggler-*.zip format for both mainline and standalone builds (x64/arm64). - Update GitHub Actions workflow to create and upload zip archives as release assets on release creation. - Grant workflow write permissions to contents for release uploads. - Revise README to reflect new artifact names in installation and portable version instructions.
1 parent 2a5175d commit 3e3ceb7

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
name: Release Builds
66

77
permissions:
8-
contents: read
8+
contents: write
99

1010
on:
1111
release:
@@ -46,9 +46,23 @@ jobs:
4646
- name: Publish application (${{ matrix.configuration }} - ${{ matrix.profile }})
4747
run: dotnet publish $env:Solution_Name -c ${{ matrix.configuration }} /p:PublishProfile=${{ matrix.profile }}
4848

49+
# Create zip file of published application
50+
- name: Create zip archive
51+
run: |
52+
$publishPath = "${{ env.Solution_Path }}/bin/${{ matrix.configuration }}/publish/${{ matrix.profile }}"
53+
$zipName = "MouseJiggler-${{ matrix.profile }}.zip"
54+
Compress-Archive -Path "$publishPath/*" -DestinationPath $zipName
55+
4956
# Upload build artifacts
5057
- name: Upload build artifacts
5158
uses: actions/upload-artifact@v4
5259
with:
5360
name: Build Artifacts - ${{ matrix.configuration }} - ${{ matrix.profile }}
5461
path: ${{ env.Solution_Path }}/bin/${{ matrix.configuration }}/publish/${{ matrix.profile }}/
62+
63+
# Upload to release (only when triggered by release creation)
64+
- name: Upload to release
65+
if: github.event_name == 'release'
66+
uses: softprops/action-gh-release@v2
67+
with:
68+
files: MouseJiggler-${{ matrix.profile }}.zip

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The easiest means of installing Mouse Jiggler is using Winget or Chocolatey:
2525

2626
`choco install mouse-jiggler`
2727

28-
Bare releases continue to be available on the [releases page](https://github.com/arkane-systems/mousejiggler/releases), as _mainline-x64.zip_ or _mainline-arm64.zip_, for installation without administrative permissions, although the [.NET 10 Desktop runtime](https://dotnet.microsoft.com/en-us/download/dotnet/latest/runtime) must be installed first.
28+
Bare releases continue to be available on the [releases page](https://github.com/arkane-systems/mousejiggler/releases), as _MouseJiggler-mainline-x64.zip_ or _MouseJiggler-mainline-arm64.zip_, for installation without administrative permissions, although the [.NET 10 Desktop runtime](https://dotnet.microsoft.com/en-us/download/dotnet/latest/runtime) must be installed first.
2929

3030
Please note that due to a compatibility issue with the Chocolatey shims, running Mouse Jiggler via the shim does not display command-line help or the Mouse Jiggler version when the -h/--help/-? or --version switches are used. To do so, Mouse Jiggler must be invoked directly. To easily discover the location of the original Mouse Jiggler executable for this purpose, run:
3131

@@ -34,7 +34,7 @@ Please note that due to a compatibility issue with the Chocolatey shims, running
3434
Portable Version
3535
----------------
3636

37-
A portable version of Mouse Jiggler (i.e., one which does not require the .NET runtime, and so can be installed on locked-down corporate machines that don't have it installed) is available on the [releases page](https://github.com/arkane-systems/mousejiggler/releases), as _standalone-x64.zip_ or _standalone-arm64.zip_. Just unzip and go.
37+
A portable version of Mouse Jiggler (i.e., one which does not require the .NET runtime, and so can be installed on locked-down corporate machines that don't have it installed) is available on the [releases page](https://github.com/arkane-systems/mousejiggler/releases), as _MouseJiggler-standalone-x64.zip_ or _MouseJiggler-standalone-arm64.zip_. Just unzip and go.
3838

3939
**DO NOT USE THIS VERSION IF YOU HAVE ANY OTHER ALTERNATIVE.**
4040

0 commit comments

Comments
 (0)