Sign inSign up

notisrac/aseprite-windows-build

By notisrac

•Updated almost 6 years ago

Image for building Aseprite for windows

Image
0

562

notisrac/aseprite-windows-build repository overview

View this project on github⁠

⁠Introduction

Docker image for building Aseprite⁠ for Windows x64 It can be used to build Aseprite then exit, or as a standalone build environment.

⁠Build the image

docker build -t aseprite_win_x64:latest -m 2GB .

⁠Build Aseprite

In this mode the image will clone, build and copy Aseprite into the dist folder.

docker run -it --volume <local dir>:C:/dist --name aseprite_win_x64 aseprite_win_x64:latest

Where <local dir> is a folder to put the built files Note: during execution, the process might appear frozen for minutes, please be patient :)

⁠Get a console

In this mode you will get a console, from where you can run the build manually

docker run -it --volume <local dir>:C:/dist --name aseprite_win_x64 --env CONSOLE=true aseprite_win_x64:latest

Where <local dir> is a folder to put the built files

  • To exit from the container and shut it down just type exit
  • To detach from the container and leave it running use the CTRL-p CTRL-q key sequence
  • To access it later:
  • If it is not running, then start it with docker start aseprite_win_x64
  • Attach to it with docker attach aseprite_win_x64

⁠Folder structure

C:\
  + aseprite             # the source code
   - build               # the working directory of the build
  + BuildTools           # the visual studio build tools
  + dist                 # the compiled files will be copied here
  + deps                 # skia and the dependencies are here
  + TEMP                 # the temp folder
   - choco_install.ps1   # chocolatey install script
   - run.bat             # handles the console mode
   - vs_buildtools.exe   # visual studio installer
  + TOOLS                # tools for building
   - build.ps1           # this script runs the build procedure

⁠TODO

  • Create the image
  • Create a script to fetch and build aseprite
  • Use nanoserver powershell image, as the .NET SDK is not needed (nanoserver does not contain powershell, but it is mandatory!)
  • Parameterize all the paths
  • Aseprite version must be selectable from parameter - at least latest release and dev (as selecting a too old version will introduce problems with the dependencies)
  • Add a cli file editor to the image (choco install nano) - nano does not run well in a container, see: https://github.com/moby/moby/issues/8755⁠
  • Add a cli file manager to the image (choco install mc)
  • Clean up after/before build AND/OR check if the repo is cloned, and try to pull the latest changes

Tag summary

Content type

Image

Digest

Size

4.8 GB

Last updated

almost 6 years ago

docker pull notisrac/aseprite-windows-build