-
-
Save allangarcia/938b052a7d55d1652052e4259364260b to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# README: A more updated version is on the comments by (ashmna)[https://gist.github.com/ashmna] | |
# See at: https://gist.github.com/allangarcia/938b052a7d55d1652052e4259364260b?permalink_comment_id=4265898#gistcomment-4265898 | |
# this is for tools required | |
brew update | |
brew install ninja | |
brew install cmake | |
# crete the default root directory | |
cd $HOME/Developer | |
mkdir Aseprite | |
cd Aseprite | |
# download skia m81 | |
curl -O -L "https://github.com/aseprite/skia/releases/download/m81-b607b32047/Skia-macOS-Release-x64.zip" | |
unzip Skia-macOS-Release-x64.zip -d skia-m81 | |
# this is the project itselft | |
git clone --recursive https://github.com/aseprite/aseprite.git | |
# compiling aseprite | |
cd aseprite | |
mkdir build | |
cd build | |
cmake \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DCMAKE_OSX_ARCHITECTURES=x86_64 \ | |
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \ | |
-DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk \ | |
-DLAF_BACKEND=skia \ | |
-DSKIA_DIR=../../skia-m81 \ | |
-DSKIA_LIBRARY_DIR=../../skia-m81/out/Release-x64 \ | |
-G Ninja \ | |
.. | |
ninja aseprite | |
cd ../.. | |
# bundle app from trial | |
mkdir bundle | |
cd bundle | |
curl -O -J "https://www.aseprite.org/downloads/trial/Aseprite-v1.2.27-trial-macOS.dmg" | |
mkdir mount | |
yes qy | hdiutil attach -quiet -nobrowse -noverify -noautoopen -mountpoint mount Aseprite-v1.2.27-trial-macOS.dmg | |
cp -rf mount/Aseprite.app . | |
hdiutil detach mount | |
rm -rf Aseprite.app/Contents/MacOS/aseprite | |
cp -rf ../aseprite/build/bin/aseprite Aseprite.app/Contents/MacOS/aseprite | |
rm -rf Aseprite.app/Contents/Resources/data | |
cp -rf ../aseprite/build/bin/data Aseprite.app/Contents/Resources/data | |
cd .. | |
# Install on /Applications | |
sudo cp bundle/Aseprite.app /Applications/ |
It doesn't work anymore. 404 on the trial url. tried the newest trial version but that ends up in a broken app
I’m aware! I’m working on a repo to compile on differents platforms. The repo is aseprite-build. While I’m working on it maybe become deprecated due the build script incorporated into the official repository.
Let’s see what can I do to differentiate my project from the build script officially available.
It doesn't work anymore. 404 on the trial url. tried the newest trial version but that ends up in a broken app
For me it worked with https://www.aseprite.org/downloads/trial/Aseprite-v1.3.14.1-trial-macOS.dmg
. Pay attention to change the version also in the hdiutil attach
command
hdiutil attach -quiet -nobrowse -noverify -noautoopen -mountpoint mount Aseprite-v1.3.14.1-trial-macOS.dmg
There is EULA need to be accepted.
This will bypass EULA:
hdiutil convert foo.dmg -format UDTO -o bar.cdr
hdiutil attach bar.cdr ---> it will mount to /Volumes so no need sudo/permissions, no need create mount folder
Great contribution. I’m working on a project to substitute this gist. Today this gist is obsolete. My goal is to make a multi platform compilation script to make Aseprite in Windows, macOS and Linux.
It doesn't work anymore. 404 on the trial url. tried the newest trial version but that ends up in a broken app