Created
April 9, 2022 18:05
-
-
Save haliphax/d2aff10aa369d5a2e51a615e202e92a7 to your computer and use it in GitHub Desktop.
Build Aseprite from source on Ubuntu 20.04
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 | |
# dependencies | |
[ -d "$HOME/aseprite" ] && rm -rf "$HOME/aseprite" | |
[ -d "$HOME/deps" ] && rm -rf "$HOME/deps" | |
mkdir "$HOME/deps" && \ | |
export PATH="${PATH}:${HOME}/deps" && \ | |
sudo apt install -y g++ wget git unzip cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev python2 | |
[ $? -ne 0 ] && exit $? | |
# skia | |
cd "$HOME/deps" && \ | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --single-branch --depth=1 depot_tools && \ | |
git clone https://github.com/aseprite/skia --recursive --single-branch --depth=1 -b aseprite-m96 && \ | |
cd skia && \ | |
python2 tools/git-sync-deps && \ | |
bin/gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false" && \ | |
ninja -C out/Release-x64 skia modules | |
[ $? -ne 0 ] && exit $? | |
# aseprite | |
cd "$HOME" && \ | |
git clone https://github.com/aseprite/aseprite --recursive --single-branch --depth=1 aseprite && \ | |
cd "$HOME/aseprite" && \ | |
mkdir build && \ | |
cd build && \ | |
cmake \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DLAF_BACKEND=skia \ | |
-DSKIA_DIR="$HOME/deps/skia" \ | |
-DSKIA_LIBRARY_DIR="$HOME/deps/skia/out/Release-x64" \ | |
-DSKIA_LIBRARY="$HOME/deps/skia/out/Release-x64/libskia.a" \ | |
-G Ninja \ | |
.. && \ | |
ninja aseprite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment