Skip to content

Instantly share code, notes, and snippets.

@AnthonyDS
Last active March 14, 2021 13:58
Show Gist options
  • Save AnthonyDS/4e94f95c7e341876fa323ef65c620f22 to your computer and use it in GitHub Desktop.
Save AnthonyDS/4e94f95c7e341876fa323ef65c620f22 to your computer and use it in GitHub Desktop.
Aseprite: Сборка Aseprite
# Переходим в домашний каталог
cd $HOME
# Клонируем репозиторий с зависимостями
git clone --recursive https://github.com/aseprite/aseprite.git
# Переходим в директорию aseprite
cd aseprite
# Создаём папку build и переходим в неё
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
#
# Создаём ярлык
#
# Создаём папку под программу в каталоге /usr/share
sudo mkdir /usr/share/aseprite
# Переносим содержимое папки aseprite/build/bin в /usr/share/aseprite
mv bin/* /usr/share/aseprite
# Создаём символическую ссылку
sudo ln -s /usr/share/aseprite/aseprite /usr/local/bin/aseprite
# Создаём ярлык
sudo touch /usr/share/applications/aseprite.desktop
# Вставляем текст в файл aseprite.desktop
[Desktop Entry]
Name=Aseprite
Comment=Aseprite is a program to create animated sprites
GenericName=Aseprite
Keywords=Aseprite
Exec=aseprite
Terminal=false
Type=Application
Icon=/usr/share/aseprite/data/icons/ase256.png
Path=
Categories=
NoDisplay=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment