diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbde6b6..3bc81b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,6 +113,43 @@ jobs: path: | LICENSE README.md + AUDIOGUIDE.md m8c gamecontrollerdb.txt config.ini.sample + + build-macos: + runs-on: macos-latest + + steps: + - name: 'Install dependencies' + run: brew install sdl2 libserialport pkg-config + + - name: 'Checkout' + uses: actions/checkout@v2 + + - name: 'Get current date' + id: date + run: echo "::set-output name=date::$(date +%Y%m%d)" + + - name: 'Build package' + run: | + make + chmod 755 m8c + cd macos/m8c.app/Contents/ + mkdir MacOS + cd MacOS + cp ../../../../m8c . + cp /usr/local/opt/sdl2/lib/libSDL2* . + cp /usr/local/opt/libserialport/lib/libserialport.* . + install_name_tool -change /usr/local/opt/libserialport/lib/libserialport.0.dylib @executable_path/libserialport.0.dylib m8c + install_name_tool -change /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/libSDL2-2.0.0.dylib m8c + cd ../../../../ + cp -r macos/m8c.app . + zip -r m8c.zip m8c.app LICENSE README.md AUDIOGUIDE.md config.ini.sample gamecontrollerdb.txt + - name: 'Upload artifact' + uses: actions/upload-artifact@v2 + with: + name: m8c-${{ steps.date.outputs.date }}-macos + path: m8c.zip + diff --git a/.gitignore b/.gitignore index 59e835d..b92f0c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ +*.dylib +*.a *.o *.exe +.DS_Store m8c .vscode font.c diff --git a/macos/m8c.app/Contents/Info.plist b/macos/m8c.app/Contents/Info.plist new file mode 100644 index 0000000..0c68d6a --- /dev/null +++ b/macos/m8c.app/Contents/Info.plist @@ -0,0 +1,54 @@ + + + + + BuildMachineOSBuild + 17G11023 + CFBundleDevelopmentRegion + en + CFBundleIconFile + m8c + CFBundleExecutable + m8c + CFBundleIdentifier + com.laamaa.m8c + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + m8c + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 10B61 + DTPlatformVersion + GM + DTSDKBuild + 18B71 + DTSDKName + macosx10.14 + DTXcode + 1010 + DTXcodeBuild + 10B61 + LSApplicationCategoryType + public.app-category.utilities + LSMinimumSystemVersion + 10.13 + NSHumanReadableCopyright + Copyright © 2021 laamaa. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/macos/m8c.app/Contents/PkgInfo b/macos/m8c.app/Contents/PkgInfo new file mode 100644 index 0000000..6f749b0 --- /dev/null +++ b/macos/m8c.app/Contents/PkgInfo @@ -0,0 +1 @@ +APPL???? diff --git a/macos/m8c.app/Contents/Resources/m8c.icns b/macos/m8c.app/Contents/Resources/m8c.icns new file mode 100644 index 0000000..29c8965 Binary files /dev/null and b/macos/m8c.app/Contents/Resources/m8c.icns differ