Created
July 31, 2024 19:07
-
-
Save cpedrorafael/cec8777d0e9435fc6c1dd847c5c6a26b to your computer and use it in GitHub Desktop.
Compile Aseprite.app from source (macOS arm64)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create skia dependencies directory | |
| rm -rf deps | |
| mkdir -p deps/skia | |
| cd deps/skia | |
| # download skia deps and unzip | |
| curl -OL https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-arm64.zip | |
| unzip Skia-macOS-Release-arm64.zip | |
| rm Skia-macOS-Release-arm64.zip | |
| cd ../.. | |
| # rm aseprite source and redownload | |
| rm -rf aseprite | |
| git clone --recursive https://github.com/aseprite/aseprite.git | |
| # building | |
| cd aseprite | |
| mkdir build | |
| cd build | |
| cmake \ | |
| -DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
| -DCMAKE_OSX_ARCHITECTURES=arm64 \ | |
| -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 \ | |
| -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \ | |
| -DLAF_BACKEND=skia \ | |
| -DSKIA_DIR=../../deps/skia \ | |
| -DSKIA_LIBRARY_DIR=../../deps/skia/out/Release-arm64 \ | |
| -DSKIA_LIBRARY=../../deps/skia/out/Release-arm64/libskia.a \ | |
| -DPNG_ARM_NEON:STRING=on \ | |
| -G Ninja \ | |
| .. | |
| ninja aseprite | |
| # packing executable into macos app | |
| cd ../.. | |
| chmod +x aseprite/build/bin/aseprite | |
| rm -rf Aseprite.app | |
| mkdir Aseprite.app | |
| cp -R aseprite/build/bin/data Aseprite.app | |
| cp aseprite/build/bin/aseprite aseprite/build/bin/gen Aseprite.app | |
| # cleanup | |
| rm -rf deps | |
| rm -rf aseprite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment