chore: update license path

This commit is contained in:
Minh141120 2025-10-08 15:48:16 +07:00
parent 999b7b3cd8
commit c7d1a3c65d
8 changed files with 10 additions and 18 deletions

View File

@ -31,8 +31,8 @@
"build:android": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_CLEAN=true yarn tauri android build -- --no-default-features --features mobile", "build:android": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_CLEAN=true yarn tauri android build -- --no-default-features --features mobile",
"build:ios": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_IOS=true yarn tauri ios build -- --no-default-features --features mobile", "build:ios": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_IOS=true yarn tauri ios build -- --no-default-features --features mobile",
"build:ios:device": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_IOS=true yarn tauri ios build -- --no-default-features --features mobile --export-method debugging", "build:ios:device": "yarn build:icon && yarn copy:assets:mobile && cross-env IS_IOS=true yarn tauri ios build -- --no-default-features --features mobile --export-method debugging",
"copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\" && cpx \"LICENSE\" \"src-tauri/resources/\"", "copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"",
"copy:assets:mobile": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\" && cpx \"LICENSE\" \"src-tauri/resources/\"", "copy:assets:mobile": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"",
"download:lib": "node ./scripts/download-lib.mjs", "download:lib": "node ./scripts/download-lib.mjs",
"download:bin": "node ./scripts/download-bin.mjs", "download:bin": "node ./scripts/download-bin.mjs",
"build:tauri:win32": "yarn download:bin && yarn tauri build", "build:tauri:win32": "yarn download:bin && yarn tauri build",
@ -68,6 +68,5 @@
"yallist": "4.0.0", "yallist": "4.0.0",
"@types/react": "19.1.2", "@types/react": "19.1.2",
"@types/react-dom": "19.1.2" "@types/react-dom": "19.1.2"
}, }
"packageManager": "yarn@4.5.3"
} }

View File

@ -15,8 +15,7 @@
"bundle": { "bundle": {
"active": true, "active": true,
"resources": [ "resources": [
"resources/pre-install/**/*", "resources/pre-install/**/*"
"resources/LICENSE"
], ],
"externalBin": [], "externalBin": [],
"android": { "android": {

View File

@ -697,7 +697,6 @@ Section Install
CreateDirectory "$INSTDIR\resources" CreateDirectory "$INSTDIR\resources"
CreateDirectory "$INSTDIR\resources\pre-install" CreateDirectory "$INSTDIR\resources\pre-install"
SetOutPath $INSTDIR SetOutPath $INSTDIR
File /a "/oname=LICENSE" "D:\a\jan\jan\src-tauri\resources\LICENSE"
SetOutPath "$INSTDIR\resources\pre-install" SetOutPath "$INSTDIR\resources\pre-install"
File /nonfatal /a /r "D:\a\jan\jan\src-tauri\resources\pre-install\" File /nonfatal /a /r "D:\a\jan\jan\src-tauri\resources\pre-install\"
SetOutPath $INSTDIR SetOutPath $INSTDIR
@ -821,9 +820,6 @@ Section Uninstall
; Copy main executable ; Copy main executable
Delete "$INSTDIR\${MAINBINARYNAME}.exe" Delete "$INSTDIR\${MAINBINARYNAME}.exe"
; Delete LICENSE file
Delete "$INSTDIR\LICENSE"
; Delete resources ; Delete resources
Delete "$INSTDIR\resources\pre-install\janhq-assistant-extension-1.0.2.tgz" Delete "$INSTDIR\resources\pre-install\janhq-assistant-extension-1.0.2.tgz"
Delete "$INSTDIR\resources\pre-install\janhq-conversational-extension-1.0.0.tgz" Delete "$INSTDIR\resources\pre-install\janhq-conversational-extension-1.0.0.tgz"

View File

@ -76,6 +76,7 @@
} }
}, },
"bundle": { "bundle": {
"licenseFile": "../LICENSE",
"publisher": "Menlo Research Pte. Ltd.", "publisher": "Menlo Research Pte. Ltd.",
"active": true, "active": true,
"createUpdaterArtifacts": false, "createUpdaterArtifacts": false,
@ -85,7 +86,6 @@
"icons/128x128@2x.png", "icons/128x128@2x.png",
"icons/icon.icns", "icons/icon.icns",
"icons/icon.ico" "icons/icon.ico"
], ]
"resources": ["resources/LICENSE"]
} }
} }

View File

@ -18,8 +18,7 @@
"developmentTeam": "<DEVELOPMENT_TEAM_ID>" "developmentTeam": "<DEVELOPMENT_TEAM_ID>"
}, },
"resources": [ "resources": [
"resources/pre-install/**/*", "resources/pre-install/**/*"
"resources/LICENSE"
], ],
"externalBin": [] "externalBin": []
} }

View File

@ -11,7 +11,7 @@
}, },
"bundle": { "bundle": {
"targets": ["deb", "appimage"], "targets": ["deb", "appimage"],
"resources": ["resources/pre-install/**/*", "resources/LICENSE"], "resources": ["resources/pre-install/**/*"],
"externalBin": ["resources/bin/uv"], "externalBin": ["resources/bin/uv"],
"linux": { "linux": {
"appimage": { "appimage": {

View File

@ -11,7 +11,7 @@
}, },
"bundle": { "bundle": {
"targets": ["app", "dmg"], "targets": ["app", "dmg"],
"resources": ["resources/pre-install/**/*", "resources/LICENSE"], "resources": ["resources/pre-install/**/*"],
"externalBin": ["resources/bin/bun", "resources/bin/uv"] "externalBin": ["resources/bin/bun", "resources/bin/uv"]
} }
} }

View File

@ -13,8 +13,7 @@
"bundle": { "bundle": {
"targets": ["nsis", "msi"], "targets": ["nsis", "msi"],
"resources": [ "resources": [
"resources/pre-install/**/*", "resources/pre-install/**/*"
"resources/LICENSE"
], ],
"externalBin": ["resources/bin/bun", "resources/bin/uv"], "externalBin": ["resources/bin/bun", "resources/bin/uv"],
"windows": { "windows": {