Some checks failed
Docker / Docker Buildx (push) Has been cancelled
Build Debian package / Build package (release) Has been cancelled
Build and Deploy / prepare (release) Has been cancelled
Deploy release / Deploy to Cloudflare Pages (release) Has been cancelled
Build and Deploy / Trigger Pro pipeline (release) Has been cancelled
Build and Deploy / Windows arm64 (release) Has been cancelled
Build and Deploy / Windows x64 (release) Has been cancelled
Build and Deploy / macOS (release) Has been cancelled
Build and Deploy / Linux amd64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / Linux arm64 (sqlcipher static) (release) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (release) Has been cancelled
Build and Deploy / Deploy builds to ESS (release) Has been cancelled
84 lines
3.2 KiB
JSON
84 lines
3.2 KiB
JSON
{
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"implicitDependencies": ["element-web"],
|
|
"root": "apps/desktop",
|
|
"targets": {
|
|
"docker:build": {
|
|
"executor": "@nx-tools/nx-container:build",
|
|
"options": {
|
|
"load": true,
|
|
"engine": "docker",
|
|
"platforms": ["linux/amd64", "linux/arm64"],
|
|
"provenance": "true",
|
|
"sbom": true,
|
|
"context": "{projectRoot}",
|
|
"file": "{projectRoot}/dockerbuild/Dockerfile",
|
|
"metadata": {
|
|
"images": ["ghcr.io/element-hq/element-web/desktop-build-env"],
|
|
"tags": ["type=ref,event=branch"]
|
|
}
|
|
}
|
|
},
|
|
"build:ts": {
|
|
"cache": true,
|
|
"command": "tsc",
|
|
"inputs": ["src", "{projectRoot}/tsconfig.json"],
|
|
"outputs": ["{projectRoot}/lib/*.js", "{projectRoot}/lib/*.d.ts"],
|
|
"options": { "cwd": "apps/desktop" }
|
|
},
|
|
"build:res": {
|
|
"cache": true,
|
|
"command": "node scripts/copy-res.ts",
|
|
"inputs": ["{projectRoot}/i18n"],
|
|
"outputs": ["{projectRoot}/lib/i18n"],
|
|
"options": { "cwd": "apps/desktop" }
|
|
},
|
|
"build": {
|
|
"cache": true,
|
|
"command": "pnpm exec electron-builder",
|
|
"inputs": [
|
|
"src",
|
|
"{projectRoot}/.hak/hakModules",
|
|
"{projectRoot}/electron-builder.json",
|
|
"{projectRoot}/webapp.asar"
|
|
],
|
|
"outputs": ["{projectRoot}/dist"],
|
|
"options": { "cwd": "apps/desktop" },
|
|
"dependsOn": ["build:*"]
|
|
},
|
|
"start": {
|
|
"command": "electron .",
|
|
"options": { "cwd": "apps/desktop" },
|
|
"dependsOn": ["build:*"]
|
|
},
|
|
"test:playwright": {
|
|
"command": "playwright test",
|
|
"options": { "cwd": "apps/desktop" }
|
|
},
|
|
"test:playwright:screenshots:build-app": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"pnpm run build -l --x64 --dir --publish=never",
|
|
"pnpm exec electron-fuses write --app ./dist/linux-unpacked/element-desktop EnableNodeCliInspectArguments=on"
|
|
],
|
|
"parallel": false,
|
|
"cwd": "apps/desktop"
|
|
},
|
|
"dependsOn": ["build:*"]
|
|
},
|
|
"test:playwright:screenshots:build-docker": {
|
|
"cache": true,
|
|
"command": "docker build -f playwright/Dockerfile -t element-desktop-playwright --platform linux/amd64 ../..",
|
|
"inputs": ["{projectRoot}/playwright/Dockerfile", "{projectRoot}/playwright/docker-entrypoint.sh"],
|
|
"options": { "cwd": "apps/desktop" }
|
|
},
|
|
"test:playwright:screenshots": {
|
|
"command": "docker run --rm --network host -v $(pwd)/../../:/work/ --platform linux/amd64 -it element-desktop-playwright",
|
|
"options": { "cwd": "apps/desktop" },
|
|
"dependsOn": ["test:playwright:screenshots:*"]
|
|
}
|
|
}
|
|
}
|