dsh-gensokyo 0.0.0-stage โ 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +395 -2
- package/README.zh.md +379 -0
- package/c/dsh-gensokyo.exe +0 -0
- package/c/ico.ico +0 -0
- package/c/launcher.c +146 -0
- package/c/launcher.rc +5 -0
- package/dist/main.mjs +8442 -0
- package/package.json +60 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 pgnqukezrdxmhjso
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,396 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-gensokyo
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
 [](https://www.npmjs.com/package/dsh-gensokyo)
|
|
4
|
+
|
|
5
|
+
[ไธญๆ](./README.zh.md)
|
|
6
|
+
|
|
7
|
+
**Instance**: an independent, isolated DSH runtime; instances never affect one another.
|
|
8
|
+
|
|
9
|
+
An instance may bind any dsh version; the manager handles fetching and compiling, so upgrading dsh is easy.
|
|
10
|
+
|
|
11
|
+
See [design/en/current.md](design/en/current.md) for details.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install it globally and run the command:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install -g dsh-gensokyo
|
|
19
|
+
dsh-gensokyo
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or install it into a project and run it through the package manager:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
npm install dsh-gensokyo
|
|
26
|
+
npx dsh-gensokyo
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
It also runs straight from the repository: clone it into any directory, install dependencies in that directory, and use `pnpm gensokyo`.
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
pnpm gensokyo
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
It works from wherever you put it; `pnpm install` installs only this directory's dependencies.
|
|
37
|
+
|
|
38
|
+
## Usage
|
|
39
|
+
|
|
40
|
+
On the first run, two things happen in the menu:
|
|
41
|
+
|
|
42
|
+
1. **Install a version.** Open "Version management", pick one from the upstream tag list, and clone it into `versions/` with a build. Clone and build output share one log view you can scroll while it runs.
|
|
43
|
+
2. **Launch it.** Back on the main menu, pressing Enter launches it.
|
|
44
|
+
|
|
45
|
+
With no instance at all, a successful clone and build creates the instance `dsh` automatically, and that instance becomes the default target of `-r` and is pinned to the main menu.
|
|
46
|
+
|
|
47
|
+
In daily use there is usually only one command:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
dsh-gensokyo -r
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
It skips the menu and launches the default instance's default profile.
|
|
54
|
+
|
|
55
|
+
The directory the command runs from decides where the managed data lives: it walks up from there to the first directory containing `versions/`, which becomes this tool's root. If nothing on the way up has one, the current directory becomes the root and a new tree is created there. Use `--root` when the automatic result is not what you want.
|
|
56
|
+
|
|
57
|
+
### Command-line options
|
|
58
|
+
|
|
59
|
+
| Option | Description | Type | Required |
|
|
60
|
+
| --- | --- | --- | --- |
|
|
61
|
+
| -r | Skip the menu and launch an instance's default profile | boolean | no |
|
|
62
|
+
| -t | Name of the instance to launch; defaults to the default instance | string | no |
|
|
63
|
+
| --root | Root to use instead of the detected one | string | no |
|
|
64
|
+
| --cwd | Working directory for the launched dsh | string | no |
|
|
65
|
+
| -- | Separator: everything after it is forwarded to dsh verbatim | โ | no |
|
|
66
|
+
|
|
67
|
+
`-t` names a target rather than belonging to `-r`; today only `-r` consumes it, so using `-t` on its own is an error instead of being silently ignored. Anything between the options and `--` that is not recognised is also an error.
|
|
68
|
+
|
|
69
|
+
What follows `--` **replaces** the arguments stored for that instance's default profile entirely, rather than being appended to them.
|
|
70
|
+
|
|
71
|
+
### Examples
|
|
72
|
+
|
|
73
|
+
Enter the menu:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
dsh-gensokyo
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Launch the default instance's default profile:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
dsh-gensokyo -r
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Launch a specific instance:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
dsh-gensokyo -r -t dsh
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Launch a profile this tool does not start itself:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
dsh-gensokyo -r -t dsh -- --profile headless "run the tests"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Run the launched dsh in another directory โ useful for `headless`, whose workspace is the directory it is started in:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
dsh-gensokyo -r -t dsh --cwd D:\my-project -- --profile headless "run the tests"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Manage a different tree:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
dsh-gensokyo --root D:\dsh
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Replace the default profile's stored arguments:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
dsh-gensokyo -r -t dsh -- --port 3000
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Arguments after `--` are passed through untouched, so `-r`, `-t`, `--root` and `--cwd` appearing there belong to dsh, not to this tool.
|
|
116
|
+
|
|
117
|
+
## Features
|
|
118
|
+
|
|
119
|
+
### Main menu
|
|
120
|
+
|
|
121
|
+
~~~
|
|
122
|
+
? ไธป่ๅ๏ผ๏ผD:\data\code\deepseek-harness๏ผๅ็ฐๆฐ็ๆฌ๏ผv0.2.1-rc.2 -> v0.2.2-rc.5๏ผ
|
|
123
|
+
โโ ๅฎไพ โโโโโโโโโโโโโโโโโโ
|
|
124
|
+
asd(v0.2.1-rc.2)
|
|
125
|
+
โฏ 1. web
|
|
126
|
+
dsh(v0.2.1-rc.2)
|
|
127
|
+
2. ๆก้ข็
|
|
128
|
+
3. web
|
|
129
|
+
4. test
|
|
130
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
131
|
+
5. ๅฎไพ็ฎก็
|
|
132
|
+
6. ็ๆฌ็ฎก็
|
|
133
|
+
7. ็ๆๅฏๅจ่ๆฌ
|
|
134
|
+
8. ่ท้็ณป็ปไปฃ็๏ผhttp://127.0.0.1:8889๏ผ
|
|
135
|
+
9. GitHub ไปฃ็๏ผhttps://gh-proxy.org/๏ผ
|
|
136
|
+
10. Electron ้ๅ๏ผhttps://npmmirror.com/mirrors/electron/๏ผ
|
|
137
|
+
11. Q ้ๅบ
|
|
138
|
+
|
|
139
|
+
~~~
|
|
140
|
+
|
|
141
|
+
The parentheses hold the current root directory, and the update notice.
|
|
142
|
+
|
|
143
|
+
> The manager fetches the latest dsh version on startup and reports it when one is newer.
|
|
144
|
+
|
|
145
|
+
Each instance group lists the launchable profiles of a pinned instance; selecting one launches dsh directly.
|
|
146
|
+
|
|
147
|
+
### Instance management
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
โฏ 1. ๅๅปบ
|
|
151
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
152
|
+
2. dsh๏ผv0.2.1-rc.2 ยท ้ป่ฎค ยท ๅทฒๅบๅฎ๏ผ
|
|
153
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
154
|
+
3. Q ่ฟๅ
|
|
155
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
#### Create
|
|
159
|
+
|
|
160
|
+
Creates an independent, isolated dsh runtime.
|
|
161
|
+
|
|
162
|
+
Flow: instance name โ dsh version โ data source
|
|
163
|
+
|
|
164
|
+
Only locally built dsh versions can be chosen.
|
|
165
|
+
|
|
166
|
+
Data sources: new, another instance's data, or the machine's global data (dsh's default path `~/.dsh`).
|
|
167
|
+
|
|
168
|
+
The instance directory is created as `ๅทฅไฝๆ น/instances/<name>/`.
|
|
169
|
+
|
|
170
|
+
#### Inside an instance
|
|
171
|
+
|
|
172
|
+
~~~
|
|
173
|
+
? dsh๏ผv0.2.1-rc.2๏ผ
|
|
174
|
+
โโ profile โโโโโโโโโโโโโโโ
|
|
175
|
+
1. ๅๅปบ
|
|
176
|
+
2. ๆก้ข็
|
|
177
|
+
3. web๏ผ้ป่ฎค๏ผ
|
|
178
|
+
4. test
|
|
179
|
+
โโ ๅฎไพ โโโโโโโโโโโโโโโโโโ
|
|
180
|
+
โฏ 5. ๅๆถๅบๅฎ > ๅบๅฎๅฐไธป่ๅ
|
|
181
|
+
6. ๅๆถ้ป่ฎค > -r ๅฏๅจ็ฎก็ๅจๆถ็้ป่ฎคๅฎไพ
|
|
182
|
+
7. ไฟฎๆน dsh ็ๆฌ
|
|
183
|
+
8. ไฟฎๆนๅ็งฐ
|
|
184
|
+
9. ๅ ้ค
|
|
185
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
186
|
+
10. Q ่ฟๅ
|
|
187
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
188
|
+
~~~
|
|
189
|
+
|
|
190
|
+
##### profile
|
|
191
|
+
|
|
192
|
+
A profile is what dsh actually starts, living at `$DSH_HOME/profiles/<name>/`. The manager launches the profiles inside an instance.
|
|
193
|
+
|
|
194
|
+
###### Create
|
|
195
|
+
|
|
196
|
+
Creates a web-type profile.
|
|
197
|
+
|
|
198
|
+
###### Inside a profile
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
โฏ 1. ๅฏๅจ
|
|
202
|
+
2. ่ฎพไธบ้ป่ฎคๅฏๅจ > -r ๅฏๅจ็ฎก็ๅจๆถ็้ป่ฎค profile ๏ผๅชๆๅฎไพไธบ้ป่ฎคๆถๆๆพ็คบ
|
|
203
|
+
3. ๆไปถ็ฎก็ > ็ฎก็ profile ็ๆไปถ
|
|
204
|
+
4. ไฟฎๆนๅฏๅจๅๆฐ > ๅฏๅจ profile ๆถ็้ป่ฎคๅๆฐ
|
|
205
|
+
5. ไฟฎๆนๅ็งฐ
|
|
206
|
+
6. ๅ ้ค
|
|
207
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
208
|
+
7. Q ่ฟๅ
|
|
209
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
###### Desktop app
|
|
213
|
+
|
|
214
|
+
```
|
|
215
|
+
? dsh-ๆก้ข็
|
|
216
|
+
โฏ 1. ๅฏๅจ
|
|
217
|
+
2. ่ฎพไธบ้ป่ฎคๅฏๅจ
|
|
218
|
+
3. ๆไปถ็ฎก็
|
|
219
|
+
4. ็ฆ็จ > ็ฆ็จๆก้ข็
|
|
220
|
+
5. ๅ ้คๆฐๆฎ > ๅ ้คๆก้ข็็ profile ๆฐๆฎไธ Electron ๆฐๆฎ
|
|
221
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
222
|
+
6. Q ่ฟๅ
|
|
223
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
###### web
|
|
227
|
+
|
|
228
|
+
The default profile; it cannot be renamed or removed.
|
|
229
|
+
|
|
230
|
+
The port to launch on is the first free one found from 3080 (the default), or from the one configured in the launch arguments when present (which takes precedence).
|
|
231
|
+
|
|
232
|
+
##### Instance
|
|
233
|
+
|
|
234
|
+
###### Change dsh version
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
? ้ๆฉ dsh ็ๆฌ
|
|
238
|
+
โฏ 1. tag ๅ่กจ > ่ฟ็จ tag ๅ่กจ๏ผ้ๆฉๆฌๅฐไธๅญๅจ็็ๆฌๅฐ่ตฐๆๅปบๆต็จ
|
|
239
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
240
|
+
2. v0.2.1-rc.2๏ผๆก้ข็ๆชๆๅปบ๏ผ > ๆฌๅฐ็ๆฌๅ่กจ
|
|
241
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
242
|
+
3. Q ่ฟๅ
|
|
243
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Version management
|
|
247
|
+
|
|
248
|
+
```
|
|
249
|
+
? ็ๆฌ็ฎก็
|
|
250
|
+
โฏ 1. tag ๅ่กจ > ่ฟ็จ tag ๅ่กจ
|
|
251
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
252
|
+
2. v0.2.1-rc.2๏ผๆก้ข็ๆชๆๅปบ๏ผ > ๆฌๅฐ็ๆฌๅ่กจ
|
|
253
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
254
|
+
3. Q ่ฟๅ
|
|
255
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
#### Tag list
|
|
259
|
+
##### Inside a tag
|
|
260
|
+
|
|
261
|
+
```
|
|
262
|
+
? v0.2.2-rc.5
|
|
263
|
+
โฏ 1. ๅ
้ๅฐๆฌๅฐ > ๅฏ้ๆๅปบ๏ผๅจๆฒกๆไปปไฝๅฎไพๅนถไธๆๅปบๆๅๅๅฐๅๅปบ้ป่ฎคๅฎไพ
|
|
264
|
+
2. ๆฅ็ release ่ฏดๆ
|
|
265
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
266
|
+
3. Q ่ฟๅ
|
|
267
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
#### Local version list
|
|
271
|
+
##### Inside a local version
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
? v0.2.1-rc.2
|
|
275
|
+
โฏ 1. ้ๆฐๆๅปบ
|
|
276
|
+
2. ๆๅปบๆก้ข็
|
|
277
|
+
3. ๅ ้ค
|
|
278
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
279
|
+
4. Q ่ฟๅ
|
|
280
|
+
โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
### Generate launcher
|
|
284
|
+
|
|
285
|
+
For running the default instance quickly. Generates `dsh-gensokyo.sh` or `dsh-gensokyo.cmd` plus `dsh-gensokyo.exe` in the manager's working directory.
|
|
286
|
+
|
|
287
|
+
### Menu keys
|
|
288
|
+
|
|
289
|
+
Every list in the menu (confirmation boxes included) uses the same keys:
|
|
290
|
+
|
|
291
|
+
| Key | Action |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| โ | previous item |
|
|
294
|
+
| โ | next item |
|
|
295
|
+
| โ / PageUp | previous page, wrapping to the end at the top |
|
|
296
|
+
| โ / PageDown | next page, wrapping to the start at the bottom |
|
|
297
|
+
| Enter | select the highlighted item |
|
|
298
|
+
| a letter | jump to the first item starting with it |
|
|
299
|
+
| Ctrl+H | back to the main menu |
|
|
300
|
+
| Ctrl+C | pressed twice anywhere to exit the script |
|
|
301
|
+
|
|
302
|
+
### Log view keys
|
|
303
|
+
|
|
304
|
+
Running a subprocess opens the log view, whose keys are:
|
|
305
|
+
|
|
306
|
+
| Key | While the subprocess runs | After it ends |
|
|
307
|
+
| --- | --- | --- |
|
|
308
|
+
| space / โ / PgDn / J | next page | next page |
|
|
309
|
+
| B / โ / PgUp / K | previous page | previous page |
|
|
310
|
+
| Home | jump to the start | jump to the start |
|
|
311
|
+
| End | jump to the end and resume following | jump to the end |
|
|
312
|
+
| q / Esc | no effect | leave the log view and return to the menu |
|
|
313
|
+
| Ctrl+C | abort the subprocess and the processes it started | exit the whole script |
|
|
314
|
+
|
|
315
|
+
The log follows the newest output by default. Scrolling up with B / โ / Home pauses following, and End returns to the end and resumes it. At most 5000 lines are kept, dropping the oldest first.
|
|
316
|
+
|
|
317
|
+
The bottom line states the current condition: `่ฟ่กไธญ`, `ๅทฒๅฎๆ`, `ๅบ้` or `ๅทฒไธญๆญข`.
|
|
318
|
+
|
|
319
|
+
Reading a release and viewing a log use the same keys and the same wording.
|
|
320
|
+
|
|
321
|
+
### GitHub request limits
|
|
322
|
+
|
|
323
|
+
Fetching tags and release notes uses the GitHub API.
|
|
324
|
+
|
|
325
|
+
60/h (not signed in), 5000/h (signed in).
|
|
326
|
+
|
|
327
|
+
The manager reads the machine's signed-in git account automatically.
|
|
328
|
+
|
|
329
|
+
## Secondary development
|
|
330
|
+
|
|
331
|
+
Clone this repository and install dependencies in this directory:
|
|
332
|
+
|
|
333
|
+
```sh
|
|
334
|
+
pnpm install
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Run the sources without building:
|
|
338
|
+
|
|
339
|
+
```sh
|
|
340
|
+
pnpm gensokyo
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Type-check without emitting anything:
|
|
344
|
+
|
|
345
|
+
```sh
|
|
346
|
+
pnpm typecheck
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Build the JavaScript that gets published:
|
|
350
|
+
|
|
351
|
+
```sh
|
|
352
|
+
pnpm build
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
Change behaviour by editing the files under `src/`. The build type-checks first and then bundles everything into the single file `dist/main.mjs`, which is what gets published; a type error fails the build before anything is written.
|
|
356
|
+
|
|
357
|
+
### Gate checks
|
|
358
|
+
|
|
359
|
+
`pnpm verify` needs `dsh-pgnqukezrdxmhjso-base` in addition to this repository โ a separate repository providing the gate runner. The script calls it by relative path, so clone it next to this repository:
|
|
360
|
+
|
|
361
|
+
```
|
|
362
|
+
any directory/
|
|
363
|
+
dsh-gensokyo/ this repository
|
|
364
|
+
dsh-pgnqukezrdxmhjso-base/ the gate dependency
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
They only need to sit side by side; the parent directory can be named anything. Without it only `pnpm verify` is unavailable โ `pnpm gensokyo`, `pnpm build` and `pnpm typecheck` are unaffected, and using the tool never needs it.
|
|
368
|
+
|
|
369
|
+
### Changing the launcher exe
|
|
370
|
+
|
|
371
|
+
On Windows, "Generate launcher" also writes a `dsh-gensokyo.exe` whose source is `c/launcher.c`; the compiled exe sits in that same directory, and generation copies it verbatim rather than keeping a second copy. After changing the C source, rebuild:
|
|
372
|
+
|
|
373
|
+
```sh
|
|
374
|
+
pnpm build:exe
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
That compiles `c/dsh-gensokyo.exe`. It needs Visual Studio or Build Tools with "Desktop development with C++" installed; without it the command fails and leaves the existing artifact untouched. Ordinary use and `pnpm build` never need it.
|
|
378
|
+
|
|
379
|
+
The exe takes its icon from `c/ico.ico`, declared by `c/launcher.rc`. Change the icon by replacing that file and rerunning the command above; deleting the ico temporarily also compiles, yielding an exe with no custom icon at about 4 KB.
|
|
380
|
+
|
|
381
|
+
The sizes inside the icon determine how sharp each view looks. Windows' four views request `16`, `32`, `48` and `256` respectively and take the smallest entry no smaller than the request, so an ico should carry all four; whichever is missing makes that view downscale a larger one. The current ico has exactly these four.
|
|
382
|
+
|
|
383
|
+
### Packaging and publishing
|
|
384
|
+
|
|
385
|
+
```sh
|
|
386
|
+
pnpm run pack # build, then leave a tarball in dist/
|
|
387
|
+
pnpm run pub # build, log in, then publish
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
Both start with the build, so the tarball always carries freshly built output. Use `pnpm run pack`, not `pnpm pack`: the latter is pnpm's own packaging command and ignores the script of the same name, producing a tarball with no `dist/` in it.
|
|
391
|
+
|
|
392
|
+
A bare `npm publish` or `pnpm publish` does not build first, so run one of the two scripts above instead of publishing directly.
|
|
393
|
+
|
|
394
|
+
---
|
|
395
|
+
|
|
396
|
+
No runtime invariant companion is published because this repository is a development-time tool with no runtime registration and no independent runtime relation to check.
|