动画精灵编辑器和像素艺术工具Aseprite

动画精灵编辑器和像素艺术工具Aseprite
阿呆Aseprite是一款非常好用强大的像素艺术创作工具
官网售价:$19.99(送Steam Key)
Steam售价(国区): ¥70
同时这款软件开发者在Github上进行了开源,供大家自行编译使用,编译软件受官方许可,制作出的美术资产可用于商用,但不能进行二次销售。如果资金充足可以从官网或者Steam购买支持开发者
购买与编译有什么区别?
购买:会直接获得Win,Mac,Linux安装包直接可以使用,并且有官方邮件支持,更新更方便。
编译:不能直接使用,不同系统,不同版本需要自行下载源代码本地进行编译。
编译
Github Actions在线编译
- 注册Github账号,进入Aseprite的Github仓,并
Fork
项目[{"url":"/img/posts/aseprite/aseprite1.jpg","alt":""},{"url":"/img/posts/aseprite/aseprite2.jpg","alt":""}] - 点击
github
->workflows
->build.yml
,点击铅笔
进行编辑[{"url":"/img/posts/aseprite/aseprite3.jpg","alt":""},{"url":"/img/posts/aseprite/aseprite4.jpg","alt":""},{"url":"/img/posts/aseprite/aseprite5.jpg","alt":""}]
1 | name: Build Aseprite (Windows) - Artifact Only |
1 | name: Build Aseprite (Windows) - Artifact Only |
1 | name: Build Aseprite (Linux) - Artifact Only |
name: Build Aseprite (Multiplatform) - Artifact Only
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
BUILD_TYPE: Release
jobs:
build-multiplatform:
name: Build & Package Aseprite ($)
runs-on: $
permissions:
contents: read
strategy:
matrix:
os:
- name: Windows
runner: windows-latest
skia-url: https://github.com/aseprite/skia/releases/download/m124-08a5439a6b/Skia-Windows-Release-x64.zip
skia-arch: x64
executable: aseprite.exe
ccache: “off”
- name: macOS
runner: macos-14
skia-url: https://github.com/aseprite/skia/releases/download/m124-08a5439a6b/Skia-macOS-Release-arm64.zip
skia-arch: arm64
executable: aseprite
ccache: “on”
- name: Linux
runner: ubuntu-latest
skia-url: https://github.com/aseprite/skia/releases/download/m124-08a5439a6b/Skia-Linux-Release-x64.zip
skia-arch: x64
executable: aseprite
ccache: “on”
fail-fast: false # 某平台失败不影响其他平台构建
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Dependencies ($)
shell: bash
run: |
if [[ "$" == "Windows" ]]; then
# Windows 依赖:wget 和 7zip
choco install wget 7zip -y --no-progress
elif [[ "$" == "macOS" ]]; then
# macOS 依赖:wget 和 7zip(通过 brew)
brew install wget 7zip
else
# Linux 依赖:系统库和工具
sudo apt-get update -qq
sudo apt-get install -y \
wget p7zip-full \
libpixman-1-dev libfreetype6-dev libharfbuzz-dev zlib1g-dev \
libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
fi
- name: Install Skia
shell: bash
run: |
# 下载对应平台的 Skia 库并解压
wget $NaN -O skia.zip
unzip skia.zip -d skia
- uses: aseprite/get-ninja@main # 所有平台共用 Ninja 工具
- name: Configure MSVC Environment (Windows only)
if: matrix.os.name == 'Windows'
uses: ilammy/msvc-dev-cmd@v1 # 仅 Windows 需要配置 MSVC
- name: Generate Build Files
shell: bash
run: |
export enable_ccache=$
export laf_backend=skia
export enable_scripting=on
export skia_arch=$NaN
# macOS 额外指定最低系统版本
extra_cmake_args=""
if [[ "$" == "macOS" ]]; then
extra_cmake_args="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15"
fi
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=$ \
-DENABLE_TESTS=OFF \
-DENABLE_SCRIPTING=$enable_scripting \
-DENABLE_CCACHE=$enable_ccache \
-DLAF_BACKEND=$laf_backend \
-DSKIA_DIR=$(realpath skia) \
-DSKIA_LIBRARY_DIR=$(realpath skia/out/Release-$skia_arch) \
$extra_cmake_args
- name: Compile Aseprite
shell: bash
run: cd build && ninja
- name: Verify Build Output
shell: bash
run: |
if [[ ! -d "build/bin" ]]; then
echo "Error: Build output directory not found!"
exit 1
fi
if [[ ! -f "build/bin/$" ]]; then
echo "Error: $ not found in build output!"
exit 1
fi
ls -la build/bin
- name: Clean & Prepare Portable Package
working-directory: build/bin
shell: bash
run: |
# 仅保留可执行文件和 data 目录
find . -mindepth 1 ! \( -name '$' -o -name 'data' -prune \) -exec rm -rf {} +
echo '# Portable mode' > aseprite.ini
- name: Package as Zip
working-directory: build/bin
shell: bash
run: |
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
7z -tzip a "Aseprite-$-${TIMESTAMP}.zip" *
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Aseprite-$-Build
path: build/bin/Aseprite-$-*.zip
retention-days: 30
if-no-files-found: error
点击
Commit changes
进行保存。点击
Action
->Build Aseprite
->Run Workflow
,跳转页面刷新一下,项目再在编译。[{"url":"/img/posts/aseprite/aseprite7.jpg","alt":""},{"url":"/img/posts/aseprite/aseprite8.jpg","alt":""}]10-20分钟编译完成之后点击项目,就可以看到可下载的Aseprite安装包
[{"url":"/img/posts/aseprite/aseprite10.jpg","alt":""},{"url":"/img/posts/aseprite/aseprite9.jpg","alt":""}]
Win本地编译
下载
Visual Studio 2022,Aseprite源码,CMake,Ninja,Skia
Aseprite源码云盘下载,CMake云盘下载,Ninja云盘下载,Skia云盘下载,云盘密码:adai
编译前准备
- 安装
Visual Studio 2022
,勾选使用C++的桌面开发
,右侧勾选MSVC
,Windows 11 SDK
(Win10系统勾选Windows 10 SDK 10.0.18362.0
) CMake
下载.msi
文件,并安装- 将
Ninja
文件解压到C:\Program Files\CMake\bin - 在C盘创建
aseprite文件夹
,并将Aseprite源码
解压到此文件夹(如果下载beta版本,那么Skia也要下载beta版本,不然报错),并再创建Build文件夹
- 在C盘创建一个
desp文件夹
,再在desp中创建skia文件夹
,将Skia文件
解压到skia文件夹中 - win+s搜索
Developer Command Prompt for VS 2022
分别输入以下代码1
2
3
4call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat" -arch=x64
cd C:\aseprite\build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=C:\deps\skia -DSKIA_LIBRARY_DIR=C:\deps\skia\out\Release-x64 -DSKIA_LIBRARY=C:\deps\skia\out\Release-x64\skia.lib -G Ninja ..
ninja aseprite - 打开C:\aseprite\build\bin\aseprite.exe文件即可开始使用
汉化和更换主题
Aseprite汉化插件仓,Aseprite字体汉化,Aseprite主题,云盘下载
打开aseprite,
Edit
->Preferences
->Extensions
->Add Extensions
->添加汉化插件和主题插件
->General
->Language
->sChinese
->OK
[{"url":"/img/posts/aseprite/hanhua.jpg","alt":""},{"url":"/img/posts/aseprite/hanhua2.jpg","alt":""},{"url":"/img/posts/aseprite/hanhua3.jpg","alt":""}]主题
-> 选择添加的主题 ->选择
->调整缩放
->应用
,之后重启软件就可以了.
错误
提示缺少dll文件
下载Libcrypto-1_1-x64.dll,将解压的文件放入C:\Windows\System32Cmake error :generator: Ninja
Aseprite源码版本与Skia版本不对1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16CMake Deprecation Warning at src/observable/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at src/undo/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.CMake版本过高
1
ninja: error: 'C:/deps/skia/out/Release-x64/skia.lib', needed by 'bin/aseprite.exe', missing and no known rule to make it
查看创建的文件夹名称路径是否正确