-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforge.config.js
77 lines (76 loc) · 2.19 KB
/
forge.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
const path = require("path")
const { execSync } = require("child_process")
const package = require("./package.json")
const { version } = package
module.exports = {
packagerConfig: {
icon: path.resolve(__dirname, './build/icon'),
ignore: [
"\\.git",
"\\.scss",
"/build"
]
},
makers: [
{
name: "@electron-forge/maker-squirrel",
config: arch => {
return {
authors: "Arthur Lobo",
name: "tetris",
exe: "tetris.exe",
setupExe: `tetris-${version}-win32-${arch}-setup.exe`,
setupIcon: path.resolve(__dirname, 'build', 'icon.ico'),
iconUrl: "https://raw.githubusercontent.com/ArthurLobopro/tetris/master/build/icon.ico",
noMsi: true
}
}
},
{
name: "@electron-forge/maker-zip",
platforms: [
"darwin"
]
},
{
name: "@electron-forge/maker-deb",
config: {
name: "tetris.js",
productName: "Tetris.js",
genericName: "Tetris.js",
description: "A simple tetris game",
icon: path.join(__dirname, "./assets/icon.png"),
categories: ["Game"],
options: {
maintainer: "Arthur Lobo",
homepage: "https://github.com/ArthurLobopro/tetris.js"
}
},
platforms: ["linux"]
},
{
name: "@electron-forge/maker-rpm",
config: {},
platforms: []
}
],
publishers: [
{
name: "@electron-forge/publisher-github",
config: {
repository: {
owner: "ArthurLobopro",
name: "tetris.js"
},
prerelease: false,
draft: true
}
}
],
hooks: {
async generateAssets() {
execSync("yarn sass-compiler --compile")
execSync("yarn tsc")
}
}
}