-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Build Windows version with CircleCI
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ orbs: | |
aws-cli: circleci/[email protected] | ||
macos: circleci/[email protected] # For Rosetta (see below) | ||
node: circleci/[email protected] # For a recent npm version (see below) | ||
win: circleci/[email protected] | ||
jobs: | ||
# Build the **entire** app for macOS. | ||
build-macos: | ||
|
@@ -174,6 +175,41 @@ jobs: | |
name: Deploy to S3 (latest) | ||
command: aws s3 sync newIDE/electron-app/dist s3://gdevelop-releases/$(git rev-parse --abbrev-ref HEAD)/latest/ | ||
|
||
# Build the **entire** app for Windows. | ||
build-windows: | ||
executor: | ||
name: win/default | ||
size: large | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: Install Node.js | ||
command: nvm install 20; nvm use 20 | ||
|
||
# TODO: Build GDevelop.js? | ||
|
||
# GDevelop IDE dependencies. | ||
- run: | ||
name: Install GDevelop IDE dependencies (1) | ||
command: cd newIDE\app; npm install; cd ..\electron-app; npm install | ||
- run: | ||
name: Build the NSIS executable | ||
command: cd newIDE\electron-app; node scripts/build.js --win nsis --publish=never | ||
- run: | ||
name: Build the AppX | ||
command: cd newIDE\electron-app; node scripts/build.js --skip-app-build --win appx --publish=never | ||
- run: | ||
name: Clean artifacts | ||
command: Remove-Item -Path "newIDE\electron-app\dist\win-unpacked" -Recurse -Force | ||
|
||
# Upload artifacts (CircleCI) | ||
- store_artifacts: | ||
path: newIDE/electron-app/dist | ||
|
||
# Upload artifacts (AWS) | ||
# TODO | ||
|
||
# Build the WebAssembly library only (so that it's cached on a S3 and easy to re-use). | ||
build-gdevelop_js-wasm-only: | ||
docker: | ||
|
@@ -236,6 +272,7 @@ workflows: | |
builds: | ||
jobs: | ||
- build-gdevelop_js-wasm-only | ||
- build-windows #TODO: filter by branch once it's verified to work. | ||
- build-macos: | ||
filters: | ||
branches: | ||
|