Skip to content

Commit 099edb9

Browse files
committed
[WIP] Build Windows version with CircleCI
1 parent 7a4aea6 commit 099edb9

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

+37
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ orbs:
1313
aws-cli: circleci/aws-cli@2.0.6
1414
macos: circleci/macos@2.5.1 # For Rosetta (see below)
1515
node: circleci/node@5.2.0 # For a recent npm version (see below)
16+
win: circleci/windows@5.0.0
1617
jobs:
1718
# Build the **entire** app for macOS.
1819
build-macos:
@@ -174,6 +175,41 @@ jobs:
174175
name: Deploy to S3 (latest)
175176
command: aws s3 sync newIDE/electron-app/dist s3://gdevelop-releases/$(git rev-parse --abbrev-ref HEAD)/latest/
176177

178+
# Build the **entire** app for Windows.
179+
build-windows:
180+
executor:
181+
name: win/default
182+
size: medium
183+
184+
steps:
185+
- checkout
186+
- run:
187+
name: Install Node.js
188+
command: nvm install 20; nvm use 20
189+
190+
# TODO: Build GDevelop.js?
191+
192+
# GDevelop IDE dependencies.
193+
- run:
194+
name: Install GDevelop IDE dependencies
195+
command: cd newIDE\electron-app; npm install; cd ..\electron-app; npm install
196+
- run:
197+
name: Build the NSIS executable
198+
command: cd newIDE\electron-app; node scripts/build.js --win nsis --publish=never
199+
- run:
200+
name: Build the AppX
201+
command: cd newIDE\electron-app; node scripts/build.js --skip-app-build --win appx --publish=never
202+
- run:
203+
name: Clean artifacts
204+
command: Remove-Item -Path "newIDE\electron-app\dist\win-unpacked" -Recurse -Force
205+
206+
# Upload artifacts (CircleCI)
207+
- store_artifacts:
208+
path: newIDE/electron-app/dist
209+
210+
# Upload artifacts (AWS)
211+
# TODO
212+
177213
# Build the WebAssembly library only (so that it's cached on a S3 and easy to re-use).
178214
build-gdevelop_js-wasm-only:
179215
docker:
@@ -236,6 +272,7 @@ workflows:
236272
builds:
237273
jobs:
238274
- build-gdevelop_js-wasm-only
275+
- build-windows #TODO: filter by branch once it's verified to work.
239276
- build-macos:
240277
filters:
241278
branches:

0 commit comments

Comments
 (0)