-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathnw.toml
115 lines (104 loc) · 2.95 KB
/
nw.toml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[application]
name = "kdx"
title = "KDX"
version = "package.json::version"
organization = "ASPECTRON Inc"
[description]
short = "Desktop Node and Wallet for Kaspa"
long = """
KDX is a desktop wallet and a p2p network node instance. This application
allows you to participate in the Kaspa network by running a local node
instance and offers access to a local wallet, compatible with the web
wallet available at https://wallet.kaspanet.io
"""
[package]
archive = { include = true }
signatures = ["SHA256"]
build = [
{ NPM = { clean = true } }
]
# wasm = "root/wasm"
resources = "resources/setup"
output = "setup/$PLATFORM-$ARCH"
include = [
{ glob = [
"bin/*",
"*.js",
"resources/**.css",
"resources/images/*.*",
"resources/**.ttf",
"resources/**.woff",
"resources/**.svg",
"i18n.*",
"modules/*",
"lib/*",
"node_modules/*",
"package.json"
]},
]
[[action]]
items = [{ copy = { glob = [
".templates",
".defaults",
"CHANGELOG.md"
], to = "$TARGET", hidden = true}}]
[[dependency]]
name = "kaspad"
git = { url = "https://github.com/kaspanet/kaspad", branch = "master" }
run = [
{ cmd = "go build" },
{ cmd = "go build", cwd = "cmd/genkeypair" },
{ cmd = "go build", cwd = "cmd/kaspactl" },
{ cmd = "go build", cwd = "cmd/kaspawallet" },
]
copy = [
{ regex = [
"kaspad(.exe)?$",
"genkeypair(.exe)?$",
"kaspactl(.exe)?$",
"kaspawallet(.exe)?$",
], to = "bin/$PLATFORM-$ARCH", flatten = true },
]
[[dependency]]
name = "kaspa-miner"
platform = ["windows", "linux"]
git = { url = "https://github.com/aspectron/kaspa-miner", branch = "main" }
run = [{ argv = ["cargo","build","--release","-p","kaspacuda"] }]
copy = [
{ regex = [
"target/release/kaspacuda(.so|.dll)$",
"target/release/kaspaopencl(.so|.dll)$",
"target/release/kaspa-miner(.exe)?$",
], to = "bin/$PLATFORM-$ARCH", flatten = true },
# { file = "target/release/kaspa-miner$EXE", to = "bin/$PLATFORM-$ARCH/gpuminer$EXE" },
]
[nwjs]
version = "0.55.0"
ffmpeg = false
[macos-disk-image]
window_caption_height = 60
window_position = [400,100]
window_size = [485,330]
icon_size = 72
application_icon_position = [100,158]
system_applications_folder_position = [385,158]
[windows]
uuid = "c1072045-6d98-44d8-9aa5-e9be6c79bd01"
group = "Kaspa"
# run_on_startup = "everyone"
run_after_setup = true
[images]
application="logo.png"
macos-application="Icon1024.png"
macos-disk-image="kdx-dmg.png"
innosetup-icon="logo.png"
innosetup-wizard-small="kdx-55x58.bmp"
innosetup-wizard-large="kdx-164x314.bmp"
[languages]
languages = ["english","french"]
[firewall]
application = { direction = "in+out" }
rules = [
{ name = "Kaspa Node", program = "bin/windows-x64/kaspad.exe", direction="in+out" },
{ name = "Kaspa GPU Miner", program = "bin/windows-x64/gpuminer.exe", direction="out" }
]