diff --git a/apps/desktop/src/main/asset-manager.ts b/apps/desktop/src/main/asset-manager.ts index 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 { - 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 { - 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.yaml index 9ffabfcb..4bcc66f7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2576,6 +2576,9 @@ packages: '@types/unist@3.0.3': resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@types/unzipper@0.10.10': + resolution: {integrity: sha512-jKJdNxhmCHTZsaKW5x0qjn6rB+gHk0w5VFbEKsw84i+RJqXZyfTmGnpjDcKqzMpjz7VVLsUBMtO5T3mVidpt0g==} + '@types/use-sync-external-store@0.0.6': resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} @@ -3383,6 +3386,9 @@ packages: resolution: {integrity: sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==} engines: {node: '>=10'} + duplexer2@0.1.4: + resolution: {integrity: sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==} + eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -4521,6 +4527,9 @@ packages: resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==} hasBin: true + node-int64@0.4.0: + resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} + node-releases@2.0.18: resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} @@ -5778,6 +5787,9 @@ packages: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} + unzipper@0.12.3: + resolution: {integrity: sha512-PZ8hTS+AqcGxsaQntl3IRBw65QrBI6lxzqDEL7IAo/XCEqRTKGfOX56Vea5TH9SZczRVxuzk1re04z/YjuYCJA==} + update-browserslist-db@1.1.1: resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==} hasBin: true @@ -8445,6 +8457,10 @@ snapshots: '@types/unist@3.0.3': {} + '@types/unzipper@0.10.10': + dependencies: + '@types/node': 22.9.0 + '@types/use-sync-external-store@0.0.6': {} '@types/verror@1.10.10': @@ -9432,6 +9448,10 @@ snapshots: dotenv@9.0.2: {} + duplexer2@0.1.4: + dependencies: + readable-stream: 2.3.8 + eastasianwidth@0.2.0: {} ee-first@1.1.1: {} @@ -10774,6 +10794,8 @@ snapshots: detect-libc: 2.0.3 optional: true + node-int64@0.4.0: {} + node-releases@2.0.18: {} nodemailer@6.9.16: {} @@ -12107,6 +12129,14 @@ snapshots: unpipe@1.0.0: {} + unzipper@0.12.3: + dependencies: + bluebird: 3.7.2 + duplexer2: 0.1.4 + fs-extra: 11.2.0 + graceful-fs: 4.2.11 + node-int64: 0.4.0 + update-browserslist-db@1.1.1(browserslist@4.24.2): dependencies: browserslist: 4.24.2