change zip files to tar.gz

pull/19/head
Niko PLP 1 year ago
parent 32241c49f0
commit 3884ecf661
  1. 2
      README.md
  2. 3
      ng-app/README.md
  3. 6
      ng-app/package.json
  4. 4
      ng-app/src/App.svelte

@ -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"; // uncomment line 14 of src/App.svelte: import * as api from "ng-sdk-js";
cd ng-app cd ng-app
pnpm filebuild pnpm webfilebuild
cd .. cd ..
``` ```

@ -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"; // 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 // single file is available in dist-file/index.html
// the assets folder can be discarded
``` ```

@ -7,10 +7,10 @@
"dev": "vite", "dev": "vite",
"webdev": "cross-env NG_APP_WEB=1 TAURI_DEBUG=1 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", "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", "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",
"filebuilddebug": "cross-env NG_APP_WEB=1 NG_APP_FILE=1 TAURI_DEBUG=1 vite build -m debug", "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", "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", "preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.json", "check": "svelte-check --tsconfig ./tsconfig.json",
"tauri": "tauri" "tauri": "tauri"

@ -10,8 +10,8 @@
--> -->
<script lang="ts"> <script lang="ts">
// this line is needed to have the SDK working when compiling for a single file bundle (pnpm filebuild) // this line is needed to have the SDK working when compiling for a single file bundle (pnpm webfilebuild)
//import * as api from "ng-sdk-js"; // import * as api from "ng-sdk-js";
import { push, default as Router } from "svelte-spa-router"; import { push, default as Router } from "svelte-spa-router";
import { onMount, tick, onDestroy } from "svelte"; import { onMount, tick, onDestroy } from "svelte";
import { import {

Loading…
Cancel
Save