From 3884ecf6614aa56e6c2ee2bf1f9115ddf7cc87f0 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Thu, 17 Aug 2023 03:01:50 +0300 Subject: [PATCH] change zip files to tar.gz --- README.md | 2 +- ng-app/README.md | 3 +-- ng-app/package.json | 6 +++--- ng-app/src/App.svelte | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) 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/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 @@ -->