Skip to content

Commit 52e3641

Browse files
committed
refine build script
1 parent dc3805b commit 52e3641

4 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474

7575
- name: Build Electron App for ARM64
7676
run: |
77+
yarn build
7778
yarn run electron-builder --linux --arm64
7879
7980
- name: Rename RPi Artifact

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
"dev": "concurrently \"tsc -w\" \"wait-on dist/main.js && electron .\"",
1111
"format": "prettier -w .",
1212
"lint:raw": "eslint --ext .ts --ext .js --ignore-pattern dist --ignore-pattern pkg",
13-
"lint": "yarn lint:raw ."
13+
"lint": "yarn lint:raw .",
14+
"test:build": "yarn build && yarn electron-builder --dir --config",
15+
"build:mac": "yarn build && electron-builder --mac",
16+
"build:win": "yarn build && electron-builder --win",
17+
"build:linux": "yarn build && electron-builder --linux",
18+
"build:arm64": "yarn build && electron-builder --linux --arm64"
1419
},
1520
"build": {
1621
"appId": "com.josephadams.screendeck",

src/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// src/types.d.ts
22

3-
declare var global: any;
3+
declare var global: any
44

55
// Define the KeyObj type
66
export type KeyObj = {

tsconfig.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "CommonJS",
5-
"strict": true,
6-
"esModuleInterop": true,
7-
"skipLibCheck": true,
8-
"forceConsistentCasingInFileNames": true,
9-
"outDir": "dist",
10-
"rootDir": "src",
11-
"moduleResolution": "node",
12-
"types": ["node", "electron"]
13-
},
14-
"include": ["src/**/*.ts", "src/**/*.d.ts"]
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"module": "CommonJS",
5+
"strict": true,
6+
"esModuleInterop": true,
7+
"skipLibCheck": true,
8+
"forceConsistentCasingInFileNames": true,
9+
"outDir": "dist",
10+
"rootDir": "src",
11+
"moduleResolution": "node",
12+
"types": ["node", "electron"]
13+
},
14+
"include": ["src/**/*.ts", "src/**/*.d.ts"]
1515
}

0 commit comments

Comments
 (0)