Added linux release scripts

This commit is contained in:
Saud Fatayerji 2023-10-28 00:20:24 +03:00
parent cfbfbf34d7
commit 88550e13dd
6 changed files with 868 additions and 13 deletions

3
.gitignore vendored
View File

@ -3,4 +3,5 @@ node_modules/
.idea/ .idea/
dist/ dist/
android/ android/
ios/ ios/
releases/

View File

@ -1,5 +1,5 @@
{ {
"name": "ionic-app-base", "name": "stirling-pdf",
"version": "0.0.0", "version": "0.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

View File

@ -4,9 +4,11 @@
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"scripts": { "scripts": {
"ionic": "ionic serve", "dev": "ionic serve",
"dev": "vite", "dev-android": "ionic build && ionic cap run android -l --external --open",
"build": "tsc && vite build", "linux_build-release-android": "ionic cap build android --no-open --prod && cd android && ./gradlew assemble && mkdir -p ../releases && mv app/build/outputs/apk/release/app-release-unsigned.apk ../releases/StirlingPDF.apk && echo \"packaged APK\"",
"linux_build-release-pwa": "ionic build && mkdir -p releases && zip -r releases/pwa.zip dist/ && echo \"packaged PWA\"",
"build-vite": "tsc && vite build",
"preview": "vite preview", "preview": "vite preview",
"test.e2e": "cypress run", "test.e2e": "cypress run",
"test.unit": "vitest", "test.unit": "vitest",
@ -50,6 +52,7 @@
"jsdom": "^22.1.0", "jsdom": "^22.1.0",
"typescript": "^5.1.6", "typescript": "^5.1.6",
"vite": "4.5.0", "vite": "4.5.0",
"vite-plugin-pwa": "^0.16.6",
"vitest": "^0.32.2" "vitest": "^0.32.2"
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"short_name": "Ionic App", "short_name": "StirlingPDF",
"name": "My Ionic App", "name": "StirlingPDF",
"icons": [ "icons": [
{ {
"src": "assets/icon/favicon.png", "src": "assets/icon/favicon.png",

View File

@ -1,11 +1,13 @@
import legacy from '@vitejs/plugin-legacy' import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react' import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'; // https://ionicframework.com/docs/react/pwa
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
react(), react(),
VitePWA({ registerType: 'autoUpdate' }),
legacy() legacy()
], ],
test: { test: {

861
package-lock.json generated

File diff suppressed because it is too large Load Diff