Tauri macOS dev buiild/bundle (#138)

* try do build

* fixes

* do build

* change config
This commit is contained in:
Nikita
2024-09-05 12:34:46 +03:00
committed by GitHub
parent 73abce0c2b
commit 8bd659ec6c
3 changed files with 38 additions and 39 deletions

View File

@@ -1,12 +1,11 @@
{ {
"productName": "learn-anything", "productName": "Learn Anything",
"version": "0.1.0", "version": "0.1.0",
"identifier": "xyz.learn-anything", "identifier": "xyz.learnanything.desktop",
"build": { "build": {
"frontendDist": "../out", "frontendDist": "https://dev.learn-anything.xyz",
"devUrl": "http://localhost:3000", "devUrl": "http://localhost:3000",
"beforeDevCommand": "bun dev", "beforeDevCommand": "bun dev"
"beforeBuildCommand": "bun build"
}, },
"app": { "app": {
"windows": [ "windows": [
@@ -15,8 +14,7 @@
"width": 800, "width": 800,
"height": 600, "height": 600,
"resizable": true, "resizable": true,
"fullscreen": false, "fullscreen": false
"url": "http://localhost:3000"
} }
], ],
"security": { "security": {

BIN
bun.lockb

Binary file not shown.

View File

@@ -1,34 +1,35 @@
{ {
"name": "learn-anything", "name": "learn-anything",
"scripts": { "scripts": {
"dev": "bun web", "dev": "bun web",
"web": "cd web && bun dev", "web": "cd web && bun dev",
"web:build": "bun run --filter '*' build", "web:build": "bun run --filter '*' build",
"cli": "bun run --watch cli/run.ts", "cli": "bun run --watch cli/run.ts",
"seed": "bun --watch cli/seed.ts", "seed": "bun --watch cli/seed.ts",
"tauri": "tauri" "tauri": "tauri",
}, "app:build": "bun tauri build -b dmg -v"
"workspaces": [ },
"web" "workspaces": [
], "web"
"dependencies": { ],
"@tauri-apps/cli": "^2.0.0-rc.6", "dependencies": {
"@tauri-apps/plugin-fs": "^2.0.0-rc.2", "@tauri-apps/cli": "^2.0.0-rc.6",
"jazz-nodejs": "^0.7.34", "@tauri-apps/plugin-fs": "^2.0.0-rc.2",
"react-icons": "^5.3.0" "jazz-nodejs": "^0.7.34",
}, "react-icons": "^5.3.0"
"devDependencies": { },
"bun-types": "^1.1.26" "devDependencies": {
}, "bun-types": "^1.1.26"
"prettier": { },
"plugins": [ "prettier": {
"prettier-plugin-tailwindcss" "plugins": [
], "prettier-plugin-tailwindcss"
"useTabs": true, ],
"semi": false, "useTabs": true,
"trailingComma": "none", "semi": false,
"printWidth": 120, "trailingComma": "none",
"arrowParens": "avoid" "printWidth": 120,
}, "arrowParens": "avoid"
"license": "MIT" },
"license": "MIT"
} }