-
-
Save paleite/a31150d631a04335cc500f8ec344afa7 to your computer and use it in GitHub Desktop.
Download and install aseprite
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
#!/bin/bash | |
# Must have git, homebrew, and xcode to install | |
# Check for git | |
if ! command -v git &> /dev/null | |
then | |
echo "git could not be found, please install git before proceeding." | |
exit | |
fi | |
# Check for homebrew | |
if ! command -v brew &> /dev/null | |
then | |
echo "homebrew could not be found, please install homebrew before proceeding." | |
exit | |
fi | |
# Check for xcode | |
if ! xcode-select -p &> /dev/null | |
then | |
echo "Xcode could not be found, please install Xcode before proceeding." | |
exit | |
fi | |
# Make sure to change line 29 and line 30 according to your mac OS and xcode versions | |
# Install ninja compiler | |
brew install ninja | |
# Install CMake for makefile | |
brew install cmake | |
# Install prebuilt version of Skia for 2D graphic libraries | |
mkdir -p $HOME/dev/aseprite-deps/skia | |
curl -L https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-arm64.zip | tar zx -C $HOME/dev/aseprite-deps/skia | |
# Install aseprite at $HOME/dev/aseprite | |
git clone --recursive https://github.com/aseprite/aseprite.git $HOME/dev/aseprite | |
mkdir -p $HOME/dev/aseprite/build | |
cd $HOME/dev/aseprite/build | |
cmake \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DCMAKE_OSX_ARCHITECTURES=arm64 \ | |
-DCMAKE_OSX_DEPLOYMENT_TARGET=14.2 \ | |
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \ | |
-DLAF_BACKEND=skia \ | |
-DSKIA_DIR=$HOME/dev/aseprite-deps/skia \ | |
-DSKIA_LIBRARY_DIR=$HOME/dev/aseprite-deps/skia/out/Release-arm64 \ | |
-G Ninja \ | |
.. | |
ninja aseprite | |
# Start aseprite | |
$HOME/dev/aseprite/build/bin/aseprite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment