Skip to content

Commit 34336b1

Browse files
committed
Updated to aseprite 1.3.10.1
1 parent a92929d commit 34336b1

File tree

2 files changed

+63
-15
lines changed

2 files changed

+63
-15
lines changed

README.md

+25-12
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44

55
## A customizable, automated Windows batch script for easily compiling Aseprite
66

7-
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.
7+
Please refer to Aseprite's [INSTALL.md](https://github.com/aseprite/aseprite/blob/v1.3.10.1/INSTALL.md) to check for any updates to Aseprite installation procedure.
88

9-
This script was tested on Windows 10 & 11 with Visual Studio 2022 Community and is targeted for x64 based systems.
9+
This script was tested on Windows 10 & 11 with Visual Studio 2022 Community and is targeted at x64 based systems.
1010

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+
## NOTICE OF ANTIVIRUS FALSE POSITIVE
15+
16+
There is currently an issue with Windows Defender falsely identify the aseprite source code zip file as containing a trojan. This will cause an error during the download portion of the script.
17+
Temporarily disable real-time protection in Windows Defender before running the script and remember to re-enable protection afterwards.
18+
PLEASE MAKE SURE YOU FULLY TRUST THE CONTENTS OF THE SCRIPT BEFORE RUNNING AND THAT YOU HAVE DOWNLOADED IT ONLY FROM THE ORIGINAL GITHUB PAGE!
19+
1420
## Dependencies
1521

1622
* Tar (Bundled with recent releases of Windows 10 and newer)
@@ -27,43 +33,46 @@ both the Aseprite source code and a pre-built package of Skia then run the build
2733

2834
The user customizable portion of this script consists of paths. Most of these paths can be changed to better fit your build environment. Below is a short description of each path in order of appearance.
2935

30-
1. DEPS
36+
1. WORKING
37+
* Main working directory for compiling. Recommended to make a separate directory from where the script is run from so it can be easily deleted to build a fresh copy of aseprite.
38+
39+
2. DEPS
3140

3241
* Change DEPS path to your main working directory. The working directory will be created for you if it does not already exist.
3342

34-
2. ASEPRITE
43+
3. ASEPRITE
3544

3645
* Path where Aseprite source code will be unzipped into, directory is created for you. DO NOT MODIFY!
3746

38-
3. SKIA
47+
4. SKIA
3948

4049
* Path where Skia will be unzipped into, directory is created for you. DO NOT MODIFY!
4150

42-
4. ASEZIP
51+
5. ASEZIP
4352

4453
* Determines what URL aseprite source code is downloaded from, modify if you are building a different version of aseprite.
4554

46-
5. SKIAZIP
55+
6. SKIAZIP
4756

4857
* Determines what URL Skia is downloaded from, modify if your version of INSTALL.MD recommends a different version of Skia.
4958

50-
6. VISUALSTUDIO
59+
7. VISUALSTUDIO
5160

5261
* Path to Visual Studio 2022, modify if you have installed on a different drive and/or if using a different edition.
5362

54-
7. WINSDK
63+
8. WINSDK
5564

5665
* This path is to check if the correct version of the Windows SDK is installed, modify if INSTALL.MD recommends a newer SDK version.
5766

58-
8. TEMP
67+
9. TEMP
5968

6069
* Path to temporary directory for curls.
6170

6271
## Updating
6372

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).
73+
* 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%), and the source code ZIP file in your temp directory (%TEMP).
6574

66-
* If you change the URL for SKIAZIP, please make sure to delete the skia directory in the working directory (DEPS).
75+
* If you change the URL for SKIAZIP, please make sure to delete the skia directory in the working directory (%DEPS%), and the Skia ZIP file in your temp directory (%TEMP%).
6776

6877
## Details
6978

@@ -79,3 +88,7 @@ Upon completion the script will output a directory listing of the newly compiled
7988
%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.
8089

8190
Enjoy using Aseprite!
91+
92+
## Changelog
93+
94+
* 12/13/2024 - Updated to aseprite 1.3.10.1, added script to automatically create the TEMP directory. Encapsulated DEPS and TEMP into WORKING directory for easy cleanup. Addressed issue with Windows Defender false-positive and a temporary workaround.

aseprite-build-script.bat

+38-3
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,23 @@ SETLOCAL EnableDelayedExpansion
99

1010
:: Paths
1111

12-
set DEPS=C:\deps
12+
set WORKING=C:\asebuild
13+
14+
set DEPS=%WORKING%\deps
1315

1416
set ASEPRITE=%DEPS%\aseprite
1517

1618
set SKIA=%DEPS%\skia
1719

18-
set ASEZIP=https://github.com/aseprite/aseprite/releases/download/v1.3.2/Aseprite-v1.3.2-Source.zip
20+
set ASEZIP=https://github.com/aseprite/aseprite/releases/download/v1.3.10.1/Aseprite-v1.3.10.1-Source.zip
1921

2022
set SKIAZIP=https://github.com/aseprite/skia/releases/download/m102-861e4743af/Skia-Windows-Release-x64.zip
2123

2224
set VISUALSTUDIO="C:\Program Files\Microsoft Visual Studio\2022\Community"
2325

2426
set WINSDK="C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.UniversalCRT.Debug\10.0.20348.0"
2527

26-
set TEMP=C:\Temp
28+
set TEMP=%WORKING%\temp
2729

2830
:: EVERYTHING AFTER THIS POINT SHOULD BE AUTOMATED, DO NOT MODIFY UNLESS SOMETHING IS BROKEN!!!
2931

@@ -88,6 +90,37 @@ echo All dependencies met
8890

8991
:: Beginning directory creation and downloads
9092

93+
echo Checking for working directory...
94+
if exist %WORKING% (
95+
echo Working directory found
96+
)
97+
if not exist %WORKING% (
98+
echo Creating working directory
99+
md %WORKING%
100+
)
101+
if ERRORLEVEL 1 (
102+
echo Something went wrong in checking for or creating the working directory.
103+
echo Did you set the correct WORKING path for your system?
104+
echo Do you have permission to create the defined working directory?
105+
echo Is the defined working directory on a writable drive?
106+
exit /b 1
107+
)
108+
109+
echo Checking for temp directory...
110+
if exist %TEMP% (
111+
echo Temp directory found
112+
)
113+
if not exist %TEMP% (
114+
echo Creating temp directory
115+
md %TEMP%
116+
)
117+
if ERRORLEVEL 1 (
118+
echo Something went wrong in checking for or creating the temp directory.
119+
echo Did you set the correct TEMP path for your system?
120+
echo Do you have permission to create the defined temp directory?
121+
exit /b 1
122+
)
123+
91124
echo Checking for deps directory...
92125
if exist %DEPS% (
93126
echo Deps directory found
@@ -99,6 +132,7 @@ if not exist %DEPS% (
99132
if ERRORLEVEL 1 (
100133
echo Something went wrong in checking for or creating the deps directory.
101134
echo Did you set the correct DEPS path for your system?
135+
echo Do you have the proper write permissions for you working directory?
102136
exit /b 1
103137
)
104138

@@ -118,6 +152,7 @@ if not exist %ASEPRITE%\NUL (
118152
)
119153
if ERRORLEVEL 1 (
120154
echo Aseprite failed to download and extract
155+
echo Is Windows Defender blocking it as a false positive?
121156
echo Is TEMP correctly set?
122157
echo Are you connected to the internet?
123158
echo Does ASEZIP point to the correct URL?

0 commit comments

Comments
 (0)