|
13 | 13 | aws-cli: circleci/aws-cli@2.0.6
|
14 | 14 | macos: circleci/macos@2.5.1 # For Rosetta (see below)
|
15 | 15 | node: circleci/node@5.2.0 # For a recent npm version (see below)
|
| 16 | + win: circleci/windows@5.0.0 |
16 | 17 | jobs:
|
17 | 18 | # Build the **entire** app for macOS.
|
18 | 19 | build-macos:
|
@@ -174,6 +175,41 @@ jobs:
|
174 | 175 | name: Deploy to S3 (latest)
|
175 | 176 | command: aws s3 sync newIDE/electron-app/dist s3://gdevelop-releases/$(git rev-parse --abbrev-ref HEAD)/latest/
|
176 | 177 |
|
| 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 | + |
177 | 213 | # Build the WebAssembly library only (so that it's cached on a S3 and easy to re-use).
|
178 | 214 | build-gdevelop_js-wasm-only:
|
179 | 215 | docker:
|
@@ -236,6 +272,7 @@ workflows:
|
236 | 272 | builds:
|
237 | 273 | jobs:
|
238 | 274 | - build-gdevelop_js-wasm-only
|
| 275 | + - build-windows #TODO: filter by branch once it's verified to work. |
239 | 276 | - build-macos:
|
240 | 277 | filters:
|
241 | 278 | branches:
|
|
0 commit comments