Skip to content

Commit 4fbd9c4

Browse files
committed
Initial macOS Build support
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 72115c3 commit 4fbd9c4

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-24.04
2323
strategy:
2424
matrix:
25-
rid: [linux-x64, win-x64]
25+
rid: [linux-x64, win-x64, osx-arm64]
2626

2727
steps:
2828
- name: Checkout Repository

.github/workflows/build-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
- name: win-x64 Build
7272
run: dotnet publish -p:PublishProfile=win-x64 -c Release -p:AssemblyVersion=${{ github.event.inputs.version }} -p:FileVersion=${{ github.event.inputs.version }} -o ./output/win-x64 ${{env.PROJECT_PATH}}
7373

74+
- name: osx-arm64 Build
75+
run: dotnet publish -p:PublishProfile=osx-arm64 -c Release -p:AssemblyVersion=${{ github.event.inputs.version }} -p:FileVersion=${{ github.event.inputs.version }} -o ./output/osx-arm64 ${{env.PROJECT_PATH}}
76+
7477
- name: flatpak-x86_64 Build
7578
env:
7679
APP_VERSION: ${{ github.event.inputs.version }}
@@ -83,6 +86,7 @@ jobs:
8386
run: |
8487
mkdir -p ./release
8588
mv ./output/win-x64/HedgeModManager.UI.exe ./release/HedgeModManager.exe
89+
mv ./output/osx-arm64/HedgeModManager.UI ./release/HedgeModManager
8690
mv ./flatpak/${{env.FLATPAK_ID}}.flatpak ./release/${{env.FLATPAK_ID}}.flatpak
8791
8892
- name: Create Release

Source/HedgeModManager.UI/ViewModels/MainWindowViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public MainWindowViewModel(UILogger logger, List<LanguageEntry> languages)
8282
Logger.Information($"Startup Date: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} (UTC)");
8383
Logger.Debug($"IsWindows: {OperatingSystem.IsWindows()}");
8484
Logger.Debug($"IsLinux: {OperatingSystem.IsLinux()}");
85+
Logger.Debug($"IsMacOS: {OperatingSystem.IsMacOS()}");
8586
Logger.Debug($"RID: {RuntimeInformation.RuntimeIdentifier}");
8687
Logger.Debug($"FlatpakID: \"{Program.FlatpakID}\" ({!string.IsNullOrEmpty(Program.FlatpakID)})");
8788
Logger.Debug($"InstallLocation: {Program.InstallLocation}");

0 commit comments

Comments
 (0)