mygo-cli 0.7.3 → 0.8.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/index.d.ts +22 -7
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -74,6 +74,11 @@ export interface Config {
|
|
|
74
74
|
* the copyright notice without its "©" and years).
|
|
75
75
|
*/
|
|
76
76
|
publisher?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The SPDX license expression of the app, such as `MIT`, which the PKGBUILD
|
|
79
|
+
* of Arch Linux records (default: `license` in `package.json`).
|
|
80
|
+
*/
|
|
81
|
+
license?: string;
|
|
77
82
|
/** A square PNG, ideally 1024×1024 (default: `resources/icon.png` when it exists). */
|
|
78
83
|
icon?: string;
|
|
79
84
|
/** The Go package of the app, relative to the project (default: `.`). */
|
|
@@ -109,6 +114,14 @@ export interface Config {
|
|
|
109
114
|
* `resources/linux-amd64`, hold the files of one platform.
|
|
110
115
|
*/
|
|
111
116
|
resources?: string[];
|
|
117
|
+
/**
|
|
118
|
+
* Files of the project's resources directory left out of the apps:
|
|
119
|
+
* patterns of their paths there, with slashes, where `*` matches within a
|
|
120
|
+
* name and `**` any number of directories, as in `design/**`. A directory
|
|
121
|
+
* that matches is left out with what it holds. Go source files are always
|
|
122
|
+
* left out; listed `resources` ship whole.
|
|
123
|
+
*/
|
|
124
|
+
resourcesExclude?: string[];
|
|
112
125
|
/** The URL schemes the app opens, such as `myapp` for `myapp://…`, which reach `App.OnOpenURL`. */
|
|
113
126
|
urlSchemes?: string[];
|
|
114
127
|
/** The types of files the app opens, which reach `App.OnOpenFile`. */
|
|
@@ -274,24 +287,26 @@ export interface WindowsConfig {
|
|
|
274
287
|
|
|
275
288
|
/** Linux packaging. */
|
|
276
289
|
export interface LinuxConfig {
|
|
277
|
-
/** `Name <email>`, the maintainer of the Debian package (default: `author` in package.json, else the app's name). */
|
|
290
|
+
/** `Name <email>`, the maintainer of the Debian package and of the PKGBUILD (default: `author` in package.json, else the app's name). */
|
|
278
291
|
maintainer?: string;
|
|
279
292
|
/** A short description, for the desktop entry and the package. */
|
|
280
293
|
comment?: string;
|
|
281
294
|
/** The categories of the desktop entry (default: `["Utility"]`). */
|
|
282
295
|
categories?: string[];
|
|
283
|
-
/** Debian packages the app needs besides GTK and WebKitGTK. */
|
|
296
|
+
/** Debian packages the app needs besides GTK and WebKitGTK; the PKGBUILD depends on the Arch Linux packages of those MyGo knows. */
|
|
284
297
|
depends?: string[];
|
|
285
298
|
/**
|
|
286
299
|
* `false` for an app that shows no web page, in a window or a `ui.WebView`,
|
|
287
|
-
* as an app of native UI: its Debian package
|
|
300
|
+
* as an app of native UI: its Debian package and PKGBUILD depend on GTK alone, and
|
|
288
301
|
* install.sh and `mygo doctor` do not ask for WebKitGTK (default: `true`).
|
|
289
302
|
*/
|
|
290
303
|
webview?: boolean;
|
|
291
304
|
/**
|
|
292
|
-
* A command that runs the app, such as `my-app
|
|
293
|
-
*
|
|
294
|
-
* the
|
|
305
|
+
* A command that runs the app, such as `my-app`, or a list of names, such
|
|
306
|
+
* as `["my-app", "ma"]`, which adds a short one: a link in `/usr/bin` from
|
|
307
|
+
* the Debian package and the PKGBUILD, and in `~/.local/bin` from install.sh, for each,
|
|
308
|
+
* which says to run the app by the first it links (default: none; the app
|
|
309
|
+
* opens from the applications menu).
|
|
295
310
|
*/
|
|
296
|
-
command?: string;
|
|
311
|
+
command?: string | string[];
|
|
297
312
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mygo-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "The mygo command line tool: create, develop and package MyGo desktop apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mygo",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"test": "bun test"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@egoist/mygo-cli-darwin-arm64": "0.
|
|
44
|
-
"@egoist/mygo-cli-darwin-x64": "0.
|
|
45
|
-
"@egoist/mygo-cli-linux-arm64": "0.
|
|
46
|
-
"@egoist/mygo-cli-linux-x64": "0.
|
|
47
|
-
"@egoist/mygo-cli-win32-arm64": "0.
|
|
48
|
-
"@egoist/mygo-cli-win32-x64": "0.
|
|
43
|
+
"@egoist/mygo-cli-darwin-arm64": "0.8.0",
|
|
44
|
+
"@egoist/mygo-cli-darwin-x64": "0.8.0",
|
|
45
|
+
"@egoist/mygo-cli-linux-arm64": "0.8.0",
|
|
46
|
+
"@egoist/mygo-cli-linux-x64": "0.8.0",
|
|
47
|
+
"@egoist/mygo-cli-win32-arm64": "0.8.0",
|
|
48
|
+
"@egoist/mygo-cli-win32-x64": "0.8.0"
|
|
49
49
|
}
|
|
50
50
|
}
|