Default buildResources is build

This commit is contained in:
Manav Rathi 2024-03-12 15:32:57 +05:30
parent e219197e2f
commit d7cd2cecbc
No known key found for this signature in database
24 changed files with 21 additions and 24 deletions

9
desktop/.gitignore vendored
View file

@ -11,10 +11,11 @@ node_modules/
.env .env
.env.*.local .env.*.local
# Generated code during build # tsc transpiles src/**/*.ts and emits the generated JS into app
# - tsc transpiles src/**/*.ts and emits the generated JS into build/app app/
# - The out dir from the photos web app is symlinked to build/out
build/ # out is a symlink to the photos web app's dir
out
# electron-builder # electron-builder
dist/ dist/

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 989 B

After

Width:  |  Height:  |  Size: 989 B

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 607 B

After

Width:  |  Height:  |  Size: 607 B

View file

Before

Width:  |  Height:  |  Size: 259 B

After

Width:  |  Height:  |  Size: 259 B

View file

Before

Width:  |  Height:  |  Size: 458 B

After

Width:  |  Height:  |  Size: 458 B

View file

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -4,14 +4,16 @@
"private": true, "private": true,
"description": "Desktop client for Ente Photos", "description": "Desktop client for Ente Photos",
"author": "Ente <code@ente.io>", "author": "Ente <code@ente.io>",
"main": "build/app/main.js", "main": "app/main.js",
"scripts": { "scripts": {
"build": "mkdir -p build && yarn build-renderer && yarn build-main", "build": "yarn build-renderer && yarn build-main",
"build-main": "tsc && electron-builder --config.compression=store", "build-local": "yarn build-renderer && yarn build-main-local",
"build-renderer": "cd ../web && yarn install && yarn build:photos && cd ../desktop/build && rm -f out && ln -sf ../../web/apps/photos/out", "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": "concurrently \"yarn dev-main\" \"yarn dev-renderer\"",
"dev-main": "tsc && electron build/app/main.js", "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", "postinstall": "electron-builder install-app-deps",
"lint": "yarn prettier --check . && eslint \"src/**/*.ts\"", "lint": "yarn prettier --check . && eslint \"src/**/*.ts\"",
"lint-fix": "yarn prettier --write . && eslint --fix .", "lint-fix": "yarn prettier --write . && eslint --fix .",
@ -110,26 +112,20 @@
"x64ArchFiles": "Contents/Resources/ggmlclip-mac" "x64ArchFiles": "Contents/Resources/ggmlclip-mac"
}, },
"afterSign": "electron-builder-notarize", "afterSign": "electron-builder-notarize",
"extraFiles": [
{
"from": "resources",
"to": "resources",
"filter": [
"**/*"
]
}
],
"asarUnpack": [ "asarUnpack": [
"node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg", "node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg",
"node_modules/ffmpeg-static/index.js", "node_modules/ffmpeg-static/index.js",
"node_modules/ffmpeg-static/package.json" "node_modules/ffmpeg-static/package.json"
], ],
"files": [ "extraFiles": [
"build/app/**/*",
{ {
"from": "build/out", "from": "build",
"to": "out" "to": "resources"
} }
],
"files": [
"app/**/*",
"out"
] ]
}, },
"productName": "ente", "productName": "ente",

View file

@ -3,8 +3,8 @@
"target": "es2021", "target": "es2021",
"module": "commonjs", "module": "commonjs",
"esModuleInterop": true, "esModuleInterop": true,
/* Emit the generated JS into build/app */ /* Emit the generated JS into app */
"outDir": "build/app", "outDir": "app",
"noImplicitAny": true, "noImplicitAny": true,
"sourceMap": true, "sourceMap": true,
"baseUrl": "src", "baseUrl": "src",