Skip to content

Commit a92929d

Browse files
committed
I thought I pushed most of these changes already...
1 parent d5a5e8b commit a92929d

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Created by [Chasnah](https://chasnah7.github.io/)**
44

5-
## A customizable automated Windows batch script for easily compiling Aseprite
5+
## A customizable, automated Windows batch script for easily compiling Aseprite
66

77
Please refer to Aseprite's [INSTALL.md](https://github.com/aseprite/aseprite/blob/845ff177880822f33939cfbe58ca5bebaf4efbea/INSTALL.md) to check for any updates to Aseprite installation procedure.
88

@@ -11,8 +11,6 @@ This script was tested on Windows 10 & 11 with Visual Studio 2022 Community and
1111
As long as all dependencies are met and all paths are correct this script will automatically download and extract
1212
both the Aseprite source code and a pre-built package of Skia then run the build process.
1313

14-
If updating from a previous version of Aseprite make sure you delete the previous aseprite and skia directories in your working directory (DEPS).
15-
1614
## Dependencies
1715

1816
* Tar (Bundled with recent releases of Windows 10 and newer)
@@ -61,6 +59,12 @@ The user customizable portion of this script consists of paths. Most of these pa
6159

6260
* Path to temporary directory for curls.
6361

62+
## Updating
63+
64+
* If you have previously run the script and have changed the URL for ASEZIP, please make sure to delete the previous aseprite directory in the working directory (DEPS).
65+
66+
* If you change the URL for SKIAZIP, please make sure to delete the skia directory in the working directory (DEPS).
67+
6468
## Details
6569

6670
Aseprite recommends using Visual Studio 2022 and the latest version of the Windows 10 SDK (Currently 20348).
@@ -71,14 +75,7 @@ Aseprite source code and a pre-built copy of Skia are curled into the temp direc
7175

7276
The script will then begin the build process based on instructions from [INSTALL.md](https://github.com/aseprite/aseprite/blob/main/INSTALL.md).
7377

74-
Upon completion the script will output a DIR command displaying the newly compiled aseprite.exe located in the
78+
Upon completion the script will output a directory listing of the newly compiled aseprite.exe located in the
7579
%ASEPRITE%\build\bin directory. You can freely copy the executable and data folder located in the previously mentioned bin directory to a new location of your choosing.
7680

7781
Enjoy using Aseprite!
78-
79-
## InDev
80-
81-
* Currently writing up a macOS script that functions similarly to the current windows batch file. Will include prebuild checks for dependencies and customizable paths.
82-
(Will be it's own repository.)
83-
84-
* Working on a linux based script as well.

aseprite-build-script.bat

+12-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SETLOCAL EnableDelayedExpansion
44
:: REMEMBER TO CONSULT README.MD FIRST!
55
:: IF YOU RECIEVED THIS SCRIPT FROM ANYWHERE OTHER THAN https://github.com/Chasnah7/aseprite-build-script
66
:: DOUBLE CHECK TO MAKE SURE IT HAS NOT BEEN MALICIOUSLY EDITED.
7-
:: THE AUTHOR CLAIMS NO LIABILITY NO WARRANTY FOR THIS SCRIPT
7+
:: THE AUTHOR CLAIMS NO LIABILITY NOR WARRANTY FOR THIS SCRIPT
88
:: USE AT YOUR OWN RISK.
99

1010
:: Paths
@@ -105,6 +105,7 @@ if ERRORLEVEL 1 (
105105
echo Checking for aseprite checkout...
106106
if exist %ASEPRITE%\NUL (
107107
echo Aseprite was found
108+
goto skia
108109
)
109110
if not exist %ASEPRITE%\NUL (
110111
echo Aseprite was not found
@@ -127,9 +128,11 @@ if ERRORLEVEL 0 (
127128
echo Aseprite was successfully downloaded and unzipped
128129
)
129130

131+
:skia
130132
echo Checking for Skia...
131133
if exist %SKIA%\NUL (
132134
echo Skia was found
135+
goto check
133136
)
134137
if not exist %SKIA%\NUL (
135138
echo Skia was not found
@@ -152,6 +155,7 @@ if ERRORLEVEL 0 (
152155
echo Skia was successfully downloaded and unzipped
153156
)
154157

158+
:check
155159
echo All checks okay!
156160
echo .
157161

@@ -168,10 +172,16 @@ cd build
168172
call cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLAF_BACKEND=skia -DSKIA_DIR=%SKIA% -DSKIA_LIBRARY_DIR=%SKIA%\out\Release-x64 -DSKIA_LIBRARY=%SKIA%\out\Release-x64\skia.lib -G Ninja ..
169173
call ninja aseprite
170174
if ERRORLEVEL 1 (
175+
echo Failed to compile
176+
echo Are you using the correct version of Skia?
177+
echo Was aseprite properly downloaded? Make sure the %ASEPRITE% directory isn't empty.
178+
echo If you edited aseprite's source code you may have made an error, consult the compiler's output.
171179
echo Fatal error. Aborting...
172180
popd
173181
exit /b %ERRORLEVEL%
174182
)
175183

176184
echo Build complete
177-
dir %ASEPRITE%\build\bin\aseprite.exe
185+
echo Finished build is located in the %ASEPRITE%/build/bin directory.
186+
dir %ASEPRITE%\build\bin\
187+
echo The aseprite executable and data folder listed above can be moved to a location of your choosing.

0 commit comments

Comments
 (0)