Open-source and local-first Slack and Notion alternative that puts you in control of your data
TypeScript chatchat-applicationcrdteditorelectronknowledge-baselocal-firstnotionnotion-alternativerealtime-collaborationself-hostedslacksqliteteam-collaborationwikiyjs
Fix the path in asset unzip
Hakan Shehu5872e4d9a7ff
diff --git a/apps/desktop/src/main/asset-manager.ts b/apps/desktop/src/main/asset-manager.tsindex e3c4377e..4ffe7662 100644--- a/apps/desktop/src/main/asset-manager.ts+++ b/apps/desktop/src/main/asset-manager.ts@@ -64,7 +64,7 @@ class AssetManager {}private async updateEmojis(): Promise<void> {- const emojisZipPath = path.join(this.assetsDir, 'emojis.zip');+ const emojisZipPath = path.join(__dirname, 'assets', 'emojis.zip');const emojisDir = path.join(this.assetsDir, 'emojis');if (fs.existsSync(emojisDir)) {fs.rmSync(emojisDir, { recursive: true });@@ -78,7 +78,7 @@ class AssetManager {}private async updateIcons(): Promise<void> {- const iconsZipPath = path.join(this.assetsDir, 'icons.zip');+ const iconsZipPath = path.join(__dirname, 'assets', 'icons.zip');const iconsDir = path.join(this.assetsDir, 'icons');if (fs.existsSync(iconsDir)) {fs.rmSync(iconsDir, { recursive: true });diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9ffabfcb..4bcc66f7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -2576,6 +2576,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}+ '@types/[email protected]':+ resolution: {integrity: sha512-jKJdNxhmCHTZsaKW5x0qjn6rB+gHk0w5VFbEKsw84i+RJqXZyfTmGnpjDcKqzMpjz7VVLsUBMtO5T3mVidpt0g==}+'@types/[email protected]':resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}@@ -3383,6 +3386,9 @@ packages:resolution: {integrity: sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==}engines: {node: '>=10'}+ resolution: {integrity: sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==}+resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}@@ -4521,6 +4527,9 @@ packages:resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==}hasBin: true+ resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==}+resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==}@@ -5778,6 +5787,9 @@ packages:resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}engines: {node: '>= 0.8'}+ resolution: {integrity: sha512-PZ8hTS+AqcGxsaQntl3IRBw65QrBI6lxzqDEL7IAo/XCEqRTKGfOX56Vea5TH9SZczRVxuzk1re04z/YjuYCJA==}+resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==}hasBin: true@@ -8445,6 +8457,10 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]':+ dependencies:+ '@types/node': 22.9.0+'@types/[email protected]': {}'@types/[email protected]':@@ -9432,6 +9448,10 @@ snapshots:+ dependencies:+ readable-stream: 2.3.8+@@ -10774,6 +10794,8 @@ snapshots:detect-libc: 2.0.3optional: true+ [email protected]: {}+@@ -12107,6 +12129,14 @@ snapshots:+ dependencies:+ bluebird: 3.7.2+ duplexer2: 0.1.4+ fs-extra: 11.2.0+ graceful-fs: 4.2.11+ node-int64: 0.4.0+dependencies:browserslist: 4.24.2