diff --git a/.gitignore b/.gitignore index dfcfd56..a73a38f 100644 --- a/.gitignore +++ b/.gitignore @@ -348,3 +348,4 @@ MigrationBackup/ # Ionide (cross platform F# VS Code tools) working folder .ionide/ +.DS_Store diff --git a/src/AvaloniaCoreRTDemo.csproj b/src/AvaloniaCoreRTDemo.csproj index 1e09e55..a4682c4 100644 --- a/src/AvaloniaCoreRTDemo.csproj +++ b/src/AvaloniaCoreRTDemo.csproj @@ -1,9 +1,10 @@ - + WinExe net5.0 AnyCPU;x64 + app.ico @@ -33,10 +34,11 @@ - - - - + + + + + @@ -45,9 +47,34 @@ PreserveNewest - + PreserveNewest + + PreserveNewest + + + $(AssemblyName) + $(AssemblyName) + com.$(username).$(AssemblyName) + 1.0.0 + APPL + + $(AssemblyName) + app.icns + NSApplication + true + 1.0 + + true + + + + + link + + + diff --git a/src/app.icns b/src/app.icns new file mode 100644 index 0000000..09e704f Binary files /dev/null and b/src/app.icns differ diff --git a/test.command b/test.command new file mode 100755 index 0000000..7524a88 --- /dev/null +++ b/test.command @@ -0,0 +1,9 @@ +#!/bin/bash +dir=${0%/*} +if [ -d "$dir" ]; then + cd "$dir" +fi +rm -f src/packages.lock.json +dotnet publish -r osx-x64 -c release /p:RestoreLockedMode=true -t:BundleApp +rm src/bin/Release/net*/osx-x64/publish/*.icns +strip src/bin/Release/net*/osx-x64/publish/AvaloniaCoreRTDemo.app/Contents/MacOS/AvaloniaCoreRTDemo \ No newline at end of file diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..7c6b12a --- /dev/null +++ b/test.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm -f src/packages.lock.json +dotnet publish -r linux-x64 -c release /p:RestoreLockedMode=true +cd src/bin/Release/net*/linux-x64/publish +cp AvaloniaCoreRTDemo AvaloniaCoreRTDemo.bin +strip AvaloniaCoreRTDemo.bin