π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Default buildResources is build
Manav Rathid7cd2cecbc82
diff --git a/desktop/.gitignore b/desktop/.gitignoreindex b01288f0a9..9b7e0cc608 100644--- a/desktop/.gitignore+++ b/desktop/.gitignore@@ -11,10 +11,11 @@ node_modules/.env.env.*.local-# Generated code during build-# - tsc transpiles src/**/*.ts and emits the generated JS into build/app-# - The out dir from the photos web app is symlinked to build/out-build/+# tsc transpiles src/**/*.ts and emits the generated JS into app+app/++# out is a symlink to the photos web app's dir+out# electron-builderdist/diff --git a/desktop/resources/entitlements.mac.plist b/desktop/build/entitlements.mac.plistsimilarity index 100%rename from desktop/resources/entitlements.mac.plistrename to desktop/build/entitlements.mac.plistdiff --git a/desktop/resources/error.html b/desktop/build/error.htmlsimilarity index 100%rename from desktop/resources/error.htmlrename to desktop/build/error.htmldiff --git a/desktop/resources/ggmlclip-linux b/desktop/build/ggmlclip-linuxsimilarity index 100%rename from desktop/resources/ggmlclip-linuxrename to desktop/build/ggmlclip-linuxdiff --git a/desktop/resources/ggmlclip-mac b/desktop/build/ggmlclip-macsimilarity index 100%rename from desktop/resources/ggmlclip-macrename to desktop/build/ggmlclip-macdiff --git a/desktop/resources/ggmlclip-windows.exe b/desktop/build/ggmlclip-windows.exesimilarity index 100%rename from desktop/resources/ggmlclip-windows.exerename to desktop/build/ggmlclip-windows.exediff --git a/desktop/resources/icon.icns b/desktop/build/icon.icnssimilarity index 100%rename from desktop/resources/icon.icnsrename to desktop/build/icon.icnsdiff --git a/desktop/resources/icon.png b/desktop/build/icon.pngsimilarity index 100%rename from desktop/resources/icon.pngrename to desktop/build/icon.pngdiff --git a/desktop/resources/image-magick b/desktop/build/image-magicksimilarity index 100%rename from desktop/resources/image-magickrename to desktop/build/image-magickdiff --git a/desktop/resources/msvcp140d.dll b/desktop/build/msvcp140d.dllsimilarity index 100%rename from desktop/resources/msvcp140d.dllrename to desktop/build/msvcp140d.dlldiff --git a/desktop/resources/splash.html b/desktop/build/splash.htmlsimilarity index 100%rename from desktop/resources/splash.htmlrename to desktop/build/splash.htmldiff --git a/desktop/resources/taskbar-icon-Template.png b/desktop/build/taskbar-icon-Template.pngsimilarity index 100%rename from desktop/resources/taskbar-icon-Template.pngrename to desktop/build/taskbar-icon-Template.pngdiff --git a/desktop/resources/[email protected] b/desktop/build/[email protected]similarity index 100%rename from desktop/resources/[email protected]rename to desktop/build/[email protected]diff --git a/desktop/resources/[email protected] b/desktop/build/[email protected]similarity index 100%rename from desktop/resources/[email protected]rename to desktop/build/[email protected]diff --git a/desktop/resources/taskbar-icon.png b/desktop/build/taskbar-icon.pngsimilarity index 100%rename from desktop/resources/taskbar-icon.pngrename to desktop/build/taskbar-icon.pngdiff --git a/desktop/resources/[email protected] b/desktop/build/[email protected]similarity index 100%rename from desktop/resources/[email protected]rename to desktop/build/[email protected]diff --git a/desktop/resources/[email protected] b/desktop/build/[email protected]similarity index 100%rename from desktop/resources/[email protected]rename to desktop/build/[email protected]diff --git a/desktop/resources/ucrtbased.dll b/desktop/build/ucrtbased.dllsimilarity index 100%rename from desktop/resources/ucrtbased.dllrename to desktop/build/ucrtbased.dlldiff --git a/desktop/resources/vcruntime140_1d.dll b/desktop/build/vcruntime140_1d.dllsimilarity index 100%rename from desktop/resources/vcruntime140_1d.dllrename to desktop/build/vcruntime140_1d.dlldiff --git a/desktop/resources/vcruntime140d.dll b/desktop/build/vcruntime140d.dllsimilarity index 100%rename from desktop/resources/vcruntime140d.dllrename to desktop/build/vcruntime140d.dlldiff --git a/desktop/resources/version.html b/desktop/build/version.htmlsimilarity index 100%rename from desktop/resources/version.htmlrename to desktop/build/version.htmldiff --git a/desktop/resources/window-icon.png b/desktop/build/window-icon.pngsimilarity index 100%rename from desktop/resources/window-icon.pngrename to desktop/build/window-icon.pngdiff --git a/desktop/package.json b/desktop/package.jsonindex fe0b9b8ffe..b3db86f735 100644--- a/desktop/package.json+++ b/desktop/package.json@@ -4,14 +4,16 @@"private": true,"description": "Desktop client for Ente Photos","author": "Ente <[email protected]>",- "main": "build/app/main.js",+ "main": "app/main.js","scripts": {- "build": "mkdir -p build && yarn build-renderer && yarn build-main",- "build-main": "tsc && electron-builder --config.compression=store",- "build-renderer": "cd ../web && yarn install && yarn build:photos && cd ../desktop/build && rm -f out && ln -sf ../../web/apps/photos/out",+ "build": "yarn build-renderer && yarn build-main",+ "build-local": "yarn build-renderer && yarn build-main-local",+ "build-main": "tsc && electron-builder",+ "build-main-local": "tsc && electron-builder --config.compression=store",+ "build-renderer": "cd ../web && yarn install && yarn build:photos && cd ../desktop && rm -f out && ln -sf ../web/apps/photos/out","dev": "concurrently \"yarn dev-main\" \"yarn dev-renderer\"","dev-main": "tsc && electron build/app/main.js",- "dev-renderer": "cd ../web && yarn install && yarn dev:photos && cd ../desktop/build && rm -f out && ln -sf ../../web/apps/photos/out",+ "dev-renderer": "cd ../web && yarn install && yarn dev:photos","postinstall": "electron-builder install-app-deps","lint": "yarn prettier --check . && eslint \"src/**/*.ts\"","lint-fix": "yarn prettier --write . && eslint --fix .",@@ -110,26 +112,20 @@"x64ArchFiles": "Contents/Resources/ggmlclip-mac"},"afterSign": "electron-builder-notarize",- "extraFiles": [- {- "from": "resources",- "to": "resources",- "filter": [- "**/*"- ]- }- ],"asarUnpack": ["node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg","node_modules/ffmpeg-static/index.js","node_modules/ffmpeg-static/package.json"],- "files": [- "build/app/**/*",+ "extraFiles": [{- "from": "build/out",- "to": "out"+ "from": "build",+ "to": "resources"}+ ],+ "files": [+ "app/**/*",+ "out"]},"productName": "ente",diff --git a/desktop/tsconfig.json b/desktop/tsconfig.jsonindex 1efdc3d01a..142c36005c 100644--- a/desktop/tsconfig.json+++ b/desktop/tsconfig.json@@ -3,8 +3,8 @@"target": "es2021","module": "commonjs","esModuleInterop": true,- /* Emit the generated JS into build/app */- "outDir": "build/app",+ /* Emit the generated JS into app */+ "outDir": "app","noImplicitAny": true,"sourceMap": true,"baseUrl": "src",