Skip to content

Instantly share code, notes, and snippets.

@paleite
Forked from ryancat/aseprite_install.sh
Last active May 18, 2024 12:42
Show Gist options
  • Save paleite/a31150d631a04335cc500f8ec344afa7 to your computer and use it in GitHub Desktop.
Save paleite/a31150d631a04335cc500f8ec344afa7 to your computer and use it in GitHub Desktop.
Download and install aseprite
#!/bin/bash
# Must have git, homebrew, and xcode to install
# 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
cd $HOME/dev
mkdir deps
cd deps
mkdir skia
cd skia
curl -L https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-macOS-Release-arm64.zip | tar zx
# Install aseprite at $HOME/dev/aseprite
cd $HOME/dev
git clone --recursive https://github.com/aseprite/aseprite.git
cd aseprite
mkdir build
cd 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/deps/skia \
-DSKIA_LIBRARY_DIR=$HOME/dev/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