diff --git a/README.md b/README.md index e4ff5cb..fc41bbb 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ First you will need to build the single-file release of ng-app. ``` // uncomment line 14 of src/App.svelte: import * as api from "ng-sdk-js"; cd ng-app -pnpm filebuild +pnpm webfilebuild cd .. ``` diff --git a/ng-app/README.md b/ng-app/README.md index 4d9688a..1619fcb 100644 --- a/ng-app/README.md +++ b/ng-app/README.md @@ -46,9 +46,8 @@ in order to build a self-contained html file, useful for offline use, do: ``` // uncomment line 14 of src/App.svelte: import * as api from "ng-sdk-js"; -pnpm filebuild +pnpm webfilebuild // single file is available in dist-file/index.html -// the assets folder can be discarded ``` diff --git a/ng-app/dist-file.tar.gz b/ng-app/dist-file.tar.gz new file mode 100644 index 0000000..ed23f8c Binary files /dev/null and b/ng-app/dist-file.tar.gz differ diff --git a/ng-app/dist-file.zip b/ng-app/dist-file.zip deleted file mode 100644 index e276bbc..0000000 Binary files a/ng-app/dist-file.zip and /dev/null differ diff --git a/ng-app/dist.tar.gz b/ng-app/dist.tar.gz new file mode 100644 index 0000000..6459942 Binary files /dev/null and b/ng-app/dist.tar.gz differ diff --git a/ng-app/dist.zip b/ng-app/dist.zip deleted file mode 100644 index 941b617..0000000 Binary files a/ng-app/dist.zip and /dev/null differ diff --git a/ng-app/package.json b/ng-app/package.json index 12496cd..ed4b9db 100644 --- a/ng-app/package.json +++ b/ng-app/package.json @@ -7,10 +7,10 @@ "dev": "vite", "webdev": "cross-env NG_APP_WEB=1 TAURI_DEBUG=1 vite", "webbuild": "cross-env NG_APP_WEB=1 vite build && rm -f ./dist-web/assets/*.svg", - "filebuild": "cross-env NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs", - "filebuilddebug": "cross-env NG_APP_WEB=1 NG_APP_FILE=1 TAURI_DEBUG=1 vite build -m debug", + "webfilebuild": "cross-env NG_APP_WEB=1 NG_APP_FILE=1 vite build && node prepare-app-file.cjs && rm -rf ./dist-file/assets && tar --exclude .DS_Store -zcvf dist-file.tar.gz dist-file", + "webfilebuilddebug": "cross-env NG_APP_WEB=1 NG_APP_FILE=1 TAURI_DEBUG=1 vite build -m debug", "build": "vite build && rm -f ./dist/assets/*.svg", - "buildfile": "cross-env NG_APP_FILE=1 vite build && rm -r ./dist/assets", + "buildfile": "cross-env NG_APP_FILE=1 vite build && rm -rf ./dist/assets && tar --exclude .DS_Store -zcvf dist.tar.gz dist", "preview": "vite preview", "check": "svelte-check --tsconfig ./tsconfig.json", "tauri": "tauri" diff --git a/ng-app/src/App.svelte b/ng-app/src/App.svelte index d33555c..03316a9 100644 --- a/ng-app/src/App.svelte +++ b/ng-app/src/App.svelte @@ -10,8 +10,8 @@ -->