Skip to content

Commit

Permalink
shell agnostic dotnet publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Tum4ik committed Nov 4, 2024
1 parent 62dcda0 commit 48f4366
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gated_application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,23 @@ jobs:
node-version: 22
cache: 'npm'

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Clean Install
run: npm ci

- name: Electron Forge make
shell: pwsh
run: |
npm run prod-dotnet-publish-listener `
-- `
-RuntimeIdentifier ${{ matrix.platform.runtime-identifier }} `
-Version 4.0.0
dotnet publish ./dotnet/JustClipboardManager.ClipboardListener/JustClipboardManager.ClipboardListener.csproj `
-c Release `
-r ${{ matrix.platform.runtime-identifier }} `
--self-contained `
--output ./dist/dotnet `
--nologo `
/p:Version=4.0.0
npm run prod-electron-forge-make
- name: Upload build artifacts
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"electron-forge-make": "npm run dotnet-publish-listener && npm run electron-tsc && ng build && electron-forge make",
"dotnet-publish-listener": "@powershell ./scripts/publish-listener.ps1 -RuntimeIdentifier win-x64 -Version 4.0.0",
"prod-electron-forge-make": "npm run electron-tsc && ng build && electron-forge make",
"prod-dotnet-publish-listener": "@powershell ./scripts/publish-listener.ps1",
"outdated": "npm outdated",
"update-packages": "npm update --save",
"ng": "ng",
Expand Down
12 changes: 0 additions & 12 deletions scripts/publish-listener.ps1

This file was deleted.

0 comments on commit 48f4366

Please sign in to comment.