@mindw1n/webnative 3.0.4 → 3.0.5
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.js +1 -1
- package/package.json +1 -1
- package/prebuilds/dist/linux +0 -0
- package/prebuilds/dist/linux_self_contained +0 -0
package/index.js
CHANGED
|
@@ -31,7 +31,7 @@ Name=${e.name}
|
|
|
31
31
|
Exec=app
|
|
32
32
|
Icon=app
|
|
33
33
|
Type=Application
|
|
34
|
-
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await Ci(L(wr,e.icon),L(z.bin,"app.png")),await Ci(L(z.prebuilds,"
|
|
34
|
+
Categories=${(e.categories??["Utility"]).join(";")};`),e.icon&&await Ci(L(wr,e.icon),L(z.bin,"app.png")),await Ci(L(z.prebuilds,"linux"),L(z.bin,"usr/bin/linux")),await Oi(L(z.bin,"usr/bin/linux"),493),await lu(z.public,L(z.bin,"usr/bin/public"),{recursive:!0}),await lu(z.backend,L(z.bin,"usr/bin/backend"),{recursive:!0}),await Ci(z.node,L(z.bin,"usr/bin/node")),await Oi(L(z.bin,"usr/bin/node"),493)}import{mkdir as hu,copyFile as Ea,cp as uu}from"node:fs/promises";import{join as J}from"node:path";var Ai=process.cwd(),Y={prebuilds:J(ot,"prebuilds/dist"),node:J(Lt,"node.exe"),bin:J(Ai,"dist/tmp"),public:J(Ai,"app/public"),backend:J(Ai,"app/backend/dist"),dist:J(Ai,"dist")};async function Ca(){await ou(Y.node),await Lm(),await hu(Y.dist,{recursive:!0}),await eu(Y.bin,J(Y.dist,"windows.zip")),await Ue()}async function Lm(){await hu(Y.bin,{recursive:!0}),await Ea(J(Y.prebuilds,"windows.exe"),J(Y.bin,"windows.exe")),await Ea(J(Y.prebuilds,"WebView2Loader.dll"),J(Y.bin,"WebView2Loader.dll")),await Ea(Y.node,J(Y.bin,"node.exe")),await uu(Y.public,J(Y.bin,"public"),{recursive:!0}),await uu(Y.backend,J(Y.bin,"backend"),{recursive:!0})}var yr={linux:{appimage:Sa},windows:{zip:Ca},android:{apk:Ii}};function Oa(){return`Available platforms:
|
|
35
35
|
`+Object.entries(yr).map(([e,t])=>` ${e}, targets: ${Object.keys(t).join(", ")}`).join(`
|
|
36
36
|
`)}import{join as Mm}from"node:path";function cu(e){e.command("build <platform>").usage("<platform> [options]").description(`Build the application
|
|
37
37
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindw1n/webnative",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.5",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "esbuild src/index.ts --bundle --platform=node --format=esm --target=es2020 --outfile=index.js --banner:js=\"#!/usr/bin/env node\" --minify"
|
|
7
7
|
},
|
package/prebuilds/dist/linux
CHANGED
|
Binary file
|
|
Binary file
|