Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: update license path

Minh141120c7d1a3c65d9f
diff --git a/package.json b/package.json
index 386721def..f4160973f 100644
--- a/package.json
+++ b/package.json
@@ -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: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",
- "copy:assets:tauri": "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/\" && 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/\"",
"download:lib": "node ./scripts/download-lib.mjs",
"download:bin": "node ./scripts/download-bin.mjs",
"build:tauri:win32": "yarn download:bin && yarn tauri build",
@@ -68,6 +68,5 @@
"yallist": "4.0.0",
"@types/react": "19.1.2",
"@types/react-dom": "19.1.2"
- },
- "packageManager": "[email protected]"
+ }
}
diff --git a/src-tauri/tauri.android.conf.json b/src-tauri/tauri.android.conf.json
index 2f1144c20..c38f73c88 100644
--- a/src-tauri/tauri.android.conf.json
+++ b/src-tauri/tauri.android.conf.json
@@ -15,8 +15,7 @@
"bundle": {
"active": true,
"resources": [
- "resources/pre-install/**/*",
- "resources/LICENSE"
+ "resources/pre-install/**/*"
],
"externalBin": [],
"android": {
diff --git a/src-tauri/tauri.bundle.windows.nsis.template b/src-tauri/tauri.bundle.windows.nsis.template
index 8e7602f25..5d10e19c4 100644
--- a/src-tauri/tauri.bundle.windows.nsis.template
+++ b/src-tauri/tauri.bundle.windows.nsis.template
@@ -697,7 +697,6 @@ Section Install
CreateDirectory "$INSTDIR\resources"
CreateDirectory "$INSTDIR\resources\pre-install"
SetOutPath $INSTDIR
- File /a "/oname=LICENSE" "D:\a\jan\jan\src-tauri\resources\LICENSE"
SetOutPath "$INSTDIR\resources\pre-install"
File /nonfatal /a /r "D:\a\jan\jan\src-tauri\resources\pre-install\"
SetOutPath $INSTDIR
@@ -821,9 +820,6 @@ Section Uninstall
; Copy main executable
Delete "$INSTDIR\${MAINBINARYNAME}.exe"
- ; Delete LICENSE file
- Delete "$INSTDIR\LICENSE"
-
; Delete resources
Delete "$INSTDIR\resources\pre-install\janhq-assistant-extension-1.0.2.tgz"
Delete "$INSTDIR\resources\pre-install\janhq-conversational-extension-1.0.0.tgz"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index fb1b1950b..0c36fac98 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -76,6 +76,7 @@
}
},
"bundle": {
+ "licenseFile": "../LICENSE",
"publisher": "Menlo Research Pte. Ltd.",
"active": true,
"createUpdaterArtifacts": false,
@@ -85,7 +86,6 @@
"icons/icon.icns",
"icons/icon.ico"
- ],
- "resources": ["resources/LICENSE"]
+ ]
}
}
diff --git a/src-tauri/tauri.ios.conf.json b/src-tauri/tauri.ios.conf.json
index 347f16bbd..4c86629ef 100644
--- a/src-tauri/tauri.ios.conf.json
+++ b/src-tauri/tauri.ios.conf.json
@@ -18,8 +18,7 @@
"developmentTeam": "<DEVELOPMENT_TEAM_ID>"
},
"resources": [
- "resources/pre-install/**/*",
- "resources/LICENSE"
+ "resources/pre-install/**/*"
],
"externalBin": []
}
diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json
index 32f6068a2..f43b01beb 100644
--- a/src-tauri/tauri.linux.conf.json
+++ b/src-tauri/tauri.linux.conf.json
@@ -11,7 +11,7 @@
},
"bundle": {
"targets": ["deb", "appimage"],
- "resources": ["resources/pre-install/**/*", "resources/LICENSE"],
+ "resources": ["resources/pre-install/**/*"],
"externalBin": ["resources/bin/uv"],
"linux": {
"appimage": {
diff --git a/src-tauri/tauri.macos.conf.json b/src-tauri/tauri.macos.conf.json
index 5c5b493fa..016c02105 100644
--- a/src-tauri/tauri.macos.conf.json
+++ b/src-tauri/tauri.macos.conf.json
@@ -11,7 +11,7 @@
},
"bundle": {
"targets": ["app", "dmg"],
- "resources": ["resources/pre-install/**/*", "resources/LICENSE"],
+ "resources": ["resources/pre-install/**/*"],
"externalBin": ["resources/bin/bun", "resources/bin/uv"]
}
}
diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json
index bc8ede344..ffb6cf5e2 100644
--- a/src-tauri/tauri.windows.conf.json
+++ b/src-tauri/tauri.windows.conf.json
@@ -13,8 +13,7 @@
"bundle": {
"targets": ["nsis", "msi"],
"resources": [
- "resources/pre-install/**/*",
- "resources/LICENSE"
+ "resources/pre-install/**/*"
],
"externalBin": ["resources/bin/bun", "resources/bin/uv"],
"windows": {