diff --git a/.editorconfig b/.editorconfig index dfcb4a8b5..0b460ef9c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -25,3 +25,6 @@ csharp_new_line_before_finally = false [*.{md,yml}] indent_style = space indent_size = 2 + +[*.sh] +end_of_line = lf diff --git a/.github/workflows/package-mac.yml b/.github/workflows/package-mac.yml new file mode 100644 index 000000000..c15f31216 --- /dev/null +++ b/.github/workflows/package-mac.yml @@ -0,0 +1,28 @@ +name: Package GEDKeeper3 for MacOS + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + mac: + + runs-on: macos-12 + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + - name: Build + run: dotnet build -c MacOS_Debug -p:EnableDmgBuild=true + working-directory: projects/GKv3 + - name: Upload DMG file + uses: actions/upload-artifact@v3 + with: + name: GEDKeeper3 + path: projects/GKv3/GEDKeeper3/bin/MacOS_Debug/*.dmg + if-no-files-found: error diff --git a/build_v3.mac.sh b/build_v3.mac.sh new file mode 100755 index 000000000..97f4eb968 --- /dev/null +++ b/build_v3.mac.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +dotnet build projects/GKv3/GEDKeeper3.sln -c MacOS_Debug -p:MacBuildBundle=true + +# For details how to create a proper DMG HSF+ file see here: https://stackoverflow.com/a/7553878/259946. +# The ISO9660/HFS is a supported format for DMG files and can be treated as uncompressed DMG. + +# sudo apt install mkisofs +cd projects/GKv3/GEDKeeper3/bin/MacOS_Debug +mkisofs -V GEDKeeper -D -R -apple -no-pad -o GEDKeeper3-x64.dmg osx-x64 +mkisofs -V GEDKeeper -D -R -apple -no-pad -o GEDKeeper3-arm64.dmg osx-arm64 +cd - diff --git a/projects/GKv3/.run/GEDKeeper3.Mac.run.xml b/projects/GKv3/.run/GEDKeeper3.Mac.run.xml index 04f95046b..2a43c01a5 100644 --- a/projects/GKv3/.run/GEDKeeper3.Mac.run.xml +++ b/projects/GKv3/.run/GEDKeeper3.Mac.run.xml @@ -1,8 +1,8 @@ - - \ No newline at end of file +