Skip to content

Commit

Permalink
creating a .app for macos
Browse files Browse the repository at this point in the history
stinky apple
  • Loading branch information
ErisLoona committed Nov 27, 2024
1 parent a786805 commit 31e86de
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,17 @@ jobs:
env:
Configuration: ${{ matrix.configuration }}

- name: Create bundle
run: |
mkdir -p "Manga Library Manager.app/Contents/MacOS" "Manga Library Manager.app/Contents/MacOS"
mv "bin/Release/net8.0/publish/osx-arm64/Manga Manager" "Manga Library Manager.app/Contents/MacOS/"
mv icon256.icns "Manga Library Manager.app/Contents/Resources/"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: macOS Apple Silicon Executable
path: bin/Release/net8.0/publish/osx-arm64/Manga Manager
path: Manga Library Manager.app/

build-macos-intel:

Expand All @@ -91,11 +97,17 @@ jobs:
env:
Configuration: ${{ matrix.configuration }}

- name: Create bundle
run: |
mkdir -p "Manga Library Manager.app/Contents/MacOS" "Manga Library Manager.app/Contents/MacOS"
mv "bin/Release/net8.0/publish/osx-x64/Manga Manager" "Manga Library Manager.app/Contents/MacOS/"
mv icon256.icns "Manga Library Manager.app/Contents/Resources/"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: macOS Intel Executable
path: bin/Release/net8.0/publish/osx-x64/Manga Manager
path: Manga Library Manager.app/

build-linux:

Expand Down
18 changes: 18 additions & 0 deletions Properties/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>Manga Library Manager</string>
<key>CFBundleIdentifier</key>
<string>com.erisloona.mlm</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleExecutable</key>
<string>Manga Manager</string>
<key>CFBundleIconFile</key>
<string>icon256.icns</string>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Properties/PublishProfiles/Linux Publish.pubxml.user
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-11-27T19:30:06.3097457Z||;True|2024-11-27T16:59:22.2651522+01:00||;True|2024-11-27T09:39:28.4152325+01:00||;True|2024-11-27T09:01:20.5273611+01:00||;True|2024-11-27T08:56:54.6418789+01:00||;True|2024-11-27T08:51:22.1782954+01:00||;</History>
<History>True|2024-11-27T19:49:34.0528895Z||;True|2024-11-27T20:48:22.3163582+01:00||;True|2024-11-27T20:30:06.3097457+01:00||;True|2024-11-27T16:59:22.2651522+01:00||;True|2024-11-27T09:39:28.4152325+01:00||;True|2024-11-27T09:01:20.5273611+01:00||;True|2024-11-27T08:56:54.6418789+01:00||;True|2024-11-27T08:51:22.1782954+01:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>
Binary file added icon256.icns
Binary file not shown.

0 comments on commit 31e86de

Please sign in to comment.