Skip to content

Commit

Permalink
test powershell script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tum4ik committed Nov 4, 2024
1 parent 2ac233d commit c4f5da8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<Target Name="CopyGtk" AfterTargets="Publish" Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<ItemGroup>
<!-- todo: try to exclude more unused files to reduce final app size -->
<GtkFiles Include="$(LocalAppData)/Gtk/$(GtkSharpVersion)/**/*"
Exclude="$(LocalAppData)/Gtk/$(GtkSharpVersion)/gtk.zip"/>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"electron-serve": "concurrently \"npm run electron-tsc && ng serve\" \"wait-on tcp:4200 && electron . --serve\"",
"electron-tsc": "copy-files-from-to && tsc -p tsconfig.electron.json",
"electron-forge-make": "npm run dotnet-publish-listener && npm run electron-tsc && ng build && electron-forge make",
"dotnet-publish-listener": "dotnet publish ./dotnet/JustClipboardManager.ClipboardListener/JustClipboardManager.ClipboardListener.csproj -c Release -r win-x64 --self-contained true --output ./dist/dotnet",
"dotnet-publish-listener": "@powershell ./scripts/publish-listener.ps1 -RuntimeIdentifier win-x64 -Version 4.0.0",
"outdated": "npm outdated",
"update-packages": "npm update --save",
"ng": "ng",
Expand Down
12 changes: 12 additions & 0 deletions scripts/publish-listener.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
param (
[string] $RuntimeIdentifier,
[string] $Version
)

dotnet publish ./dotnet/JustClipboardManager.ClipboardListener/JustClipboardManager.ClipboardListener.csproj `
-c Release `
-r $RuntimeIdentifier `
--self-contained `
--output ./dist/dotnet `
--nologo `
/p:Version=$Version

0 comments on commit c4f5da8

Please sign in to comment.