Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Format CLI and desktop Markdown

Manav Rathi902ac6b9ce9a
diff --git a/cli/README.md b/cli/README.md
index d98dedaaf8..b1c80d9341 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -1,13 +1,10 @@
# Ente CLI
-The Ente CLI is a Command Line Utility for exporting data from
-[Ente](https://ente.com). It also does a few more things, for example, you can
-use it to decrypt the export from Ente Auth.
+The Ente CLI is a Command Line Utility for exporting data from [Ente](https://ente.com). It also does a few more things, for example, you can use it to decrypt the export from Ente Auth.
## Install
-The easiest way is to download a pre-built binary from the [GitHub
-releases](https://github.com/ente-io/ente/releases?q=tag%3Acli-v0).
+The easiest way is to download a pre-built binary from the [GitHub releases](https://github.com/ente-io/ente/releases?q=tag%3Acli-v0).
You can also build these binaries yourself
@@ -21,8 +18,7 @@ Or you can build from source
go build -o "bin/ente" main.go
```
-The generated binaries are standalone, static binaries with no dependencies. You
-can run them directly, or put them somewhere in your PATH.
+The generated binaries are standalone, static binaries with no dependencies. You can run them directly, or put them somewhere in your PATH.
There is also an option to use [Docker](#docker).
@@ -36,8 +32,7 @@ ente --help
### Accounts
-If you wish, you can add multiple accounts (your own and that of your family
-members) and export all data using this tool.
+If you wish, you can add multiple accounts (your own and that of your family members) and export all data using this tool.
#### Add an account
@@ -47,9 +42,7 @@ ente account add
> [!NOTE]
>
-> `ente account add` does not create new accounts, it just adds pre-existing
-> accounts to the list of accounts that the CLI knows about so that you can use
-> them for other actions.
+> `ente account add` does not create new accounts, it just adds pre-existing accounts to the list of accounts that the CLI knows about so that you can use them for other actions.
#### List accounts
@@ -72,34 +65,32 @@ ente export
```
### CLI Docs
-You can view more cli documents at [docs](docs/generated/ente.md).
-To update the docs, run the following command:
+
+You can view more cli documents at [docs](docs/generated/ente.md). To update the docs, run the following command:
```sh
go run main.go docs
```
-
## Docker
If you fancy Docker, you can also run the CLI within a container.
### Configure
-Modify the `docker-compose.yml` and add volume. ``cli-data`` volume is
-mandatory, you can add more volumes for your export directory.
+Modify the `docker-compose.yml` and add volume. `cli-data` volume is mandatory, you can add more volumes for your export directory.
Build and run the container in detached mode
+
```sh
docker-compose up -d --build
```
-Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build
-this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in
-front of the build command.
+
+Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in front of the build command.
`exec` into the container
+
```sh
docker-compose exec ente-cli /bin/sh -c "./ente-cli version"
-docker-compose exec ente-cli /bin/sh -c "./ente-cli account add"
+docker-compose exec ente-cli /bin/sh -c "./ente-cli account add"
```
-
diff --git a/cli/docs/release.md b/cli/docs/release.md
index fcd13b7df8..a3604648ea 100644
--- a/cli/docs/release.md
+++ b/cli/docs/release.md
@@ -4,22 +4,18 @@ Tag main, and push the tag.
> [!NOTE]
>
-> See [auth/docs/release](../../auth/docs/release.md) for more details about the
-> tag format. The prefix for cli releases should be `cli-`.
+> See [auth/docs/release](../../auth/docs/release.md) for more details about the tag format. The prefix for cli releases should be `cli-`.
```sh
git tag cli-v1.2.3
git push origin cli-v1.2.3
```
-This'll trigger a [GitHub workflow](../../.github/workflows/cli-release.yml)
-that creates a new draft GitHub release and attaches all the build artifacts to
-it (zipped up binaries for various OS and architecture combinations).
+This'll trigger a [GitHub workflow](../../.github/workflows/cli-release.yml) that creates a new draft GitHub release and attaches all the build artifacts to it (zipped up binaries for various OS and architecture combinations).
## Local release builds
-Run the release script to build the binaries for the various OS and architecture
-cominations
+Run the release script to build the binaries for the various OS and architecture cominations
```sh
./release.sh
diff --git a/cli/docs/selfhost.md b/cli/docs/selfhost.md
index b4e7a33d88..8a9d16c556 100644
--- a/cli/docs/selfhost.md
+++ b/cli/docs/selfhost.md
@@ -1,10 +1,8 @@
-
-
## Self Hosting
-If you are self-hosting the server, you can still configure CLI to export data & perform basic admin actions.
-To do this, first configure the CLI to point to your server.
-Define a config.yaml and put it either in the same directory as CLI binary or path defined in env variable `ENTE_CLI_CONFIG_DIR`
+If you are self-hosting the server, you can still configure CLI to export data & perform basic admin actions.
+
+To do this, first configure the CLI to point to your server. Define a config.yaml and put it either in the same directory as CLI binary or path defined in env variable `ENTE_CLI_CONFIG_DIR`
```yaml
endpoint:
@@ -13,7 +11,6 @@ endpoint:
You should be able to [add an account](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_account_add.md), and subsequently increase the [storage and account validity](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_admin_update-subscription.md) using the CLI.
-
For the admin actions, you first need to whitelist admin users. You can create `server/museum.yaml`, and whitelist add the admin userID `internal.admins`. See [local.yaml](https://github.com/ente-io/ente/blob/main/server/configurations/local.yaml#L211C1-L232C1) in the server source code for details about how to define this.
You can use [account list](https://github.com/ente-io/ente/blob/main/cli/docs/generated/ente_account_list.md) command to find the user id of any account.
@@ -26,4 +23,4 @@ internal:
# - 1580559962386440
# ....
-```
\ No newline at end of file
+```
diff --git a/desktop/CHANGELOG.md b/desktop/CHANGELOG.md
index ecb093d086..e71c199f6d 100644
--- a/desktop/CHANGELOG.md
+++ b/desktop/CHANGELOG.md
@@ -82,8 +82,7 @@
- Generate streams for videos (beta)
- > Streamable videos can be enabled in Preferences. For more details, see the
- > [video streaming FAQ](https://ente.com/help/photos/faq/video-streaming).
+ > Streamable videos can be enabled in Preferences. For more details, see the [video streaming FAQ](https://ente.com/help/photos/faq/video-streaming).
- Support Turkish translations.
@@ -146,8 +145,7 @@
## v1.7.2
-- Significantly improve the speed of the metadata parsing step during imports of
- Google takeouts.
+- Significantly improve the speed of the metadata parsing step during imports of Google takeouts.
- Add a option to set and use a custom endpoint.
- Fix an issue preventing subscription purchases and renewals.
- Clear cached password after changing it on a different device.
@@ -158,20 +156,16 @@
- Support for passkeys as a second factor authentication mechanism.
- Remember the window size across app restarts.
- Revert changes to the Linux icon.
-- Fix an issue causing deleted items in watched folders to not move to
- uncategorized.
+- Fix an issue causing deleted items in watched folders to not move to uncategorized.
- Fix duplicate file uploads when initializing a folder watch (sometimes).
## v1.7.0
-v1.7 is a major rewrite to improve the security of our app. In particular, the
-UI and the native parts of the app now run isolated from each other and
-communicate only using a predefined IPC boundary.
+v1.7 is a major rewrite to improve the security of our app. In particular, the UI and the native parts of the app now run isolated from each other and communicate only using a predefined IPC boundary.
Other highlights:
-- View your photos on big screens and Chromecast devices by using the "Play
- album on TV" option in the album menu.
+- View your photos on big screens and Chromecast devices by using the "Play album on TV" option in the album menu.
- Support Brazilian Portuguese, German and Russian.
- Provide a checkbox to select all photos in a day.
- Fix a case where the dedup screen would not refresh after removing items.
@@ -307,8 +301,7 @@ Other highlights:
### Photo Editor
-Check out our [blog](https://ente.com/blog/introducing-web-desktop-photo-editor/)
-to know about feature and functionalities.
+Check out our [blog](https://ente.com/blog/introducing-web-desktop-photo-editor/) to know about feature and functionalities.
## v1.6.47
@@ -323,19 +316,15 @@ to know about feature and functionalities.
### Bug Fixes
-- Fixes OOM crashes during file upload
- [#1379](https://github.com/ente-io/photos-web/pull/1379)
+- Fixes OOM crashes during file upload [#1379](https://github.com/ente-io/photos-web/pull/1379)
## v1.6.45
### Bug Fixes
-- Fixed app keeps reloading issue
- [#235](https://github.com/ente-io/photos-desktop/pull/235)
-- Fixed dng and arw preview issue
- [#1378](https://github.com/ente-io/photos-web/pull/1378)
-- Added view crash report option (help menu) for user to share electron crash
- report locally
+- Fixed app keeps reloading issue [#235](https://github.com/ente-io/photos-desktop/pull/235)
+- Fixed dng and arw preview issue [#1378](https://github.com/ente-io/photos-web/pull/1378)
+- Added view crash report option (help menu) for user to share electron crash report locally
## v1.6.44
@@ -347,28 +336,23 @@ to know about feature and functionalities.
- #### Check for update and changelog option
- Added options to check for update manually and a view changelog via the app
- menubar
+ Added options to check for update manually and a view changelog via the app menubar
- #### Opt out of crash reporting
- Added option to out of a crash reporting, it can accessed from the settings
- -> preferences -> disable crash reporting
+ Added option to out of a crash reporting, it can accessed from the settings -> preferences -> disable crash reporting
- #### Type search
- Added new search option to search files based on file type i.e, image,
- video, live-photo.
+ Added new search option to search files based on file type i.e, image, video, live-photo.
- #### Manual Convert Button
- In case the video is not playable, Now there is a convert button which can
- be used to trigger conversion of the video to supported format.
+ In case the video is not playable, Now there is a convert button which can be used to trigger conversion of the video to supported format.
- #### File Download Progress
- The file loader now also shows the exact percentage download progress,
- instead of just a simple loader.
+ The file loader now also shows the exact percentage download progress, instead of just a simple loader.
- #### Bug fixes & other enhancements
@@ -384,19 +368,16 @@ to know about feature and functionalities.
- #### Email verification
- We have now made email verification optional, so you can sign in with just
- your email address and password, without waiting for a verification code.
+ We have now made email verification optional, so you can sign in with just your email address and password, without waiting for a verification code.
You can opt in / out of email verification from Settings > Security.
- #### Download Album
- You can now chose the download location for downloading albums. Along with
- that we have also added progress bar for album download.
+ You can now chose the download location for downloading albums. Along with that we have also added progress bar for album download.
- #### Bug fixes & other enhancements
We have squashed a few pesky bugs that were reported by our community
- If you would like to help us improve ente, come join the party @
- ente.com/community!
+ If you would like to help us improve ente, come join the party @ ente.com/community!
diff --git a/desktop/README.md b/desktop/README.md
index bcec4e590a..e00bce24fa 100644
--- a/desktop/README.md
+++ b/desktop/README.md
@@ -2,11 +2,9 @@
The sweetness of Ente Photos, right on your computer. Linux, Windows and macOS.
-You can
-[**download** a pre-built binary from releases](https://github.com/ente-io/photos-desktop/releases/latest).
+You can [**download** a pre-built binary from releases](https://github.com/ente-io/photos-desktop/releases/latest).
-To know more about Ente, see [our main README](../README.md) or visit
-[ente.com](https://ente.com).
+To know more about Ente, see [our main README](../README.md) or visit [ente.com](https://ente.com).
## Building from source
@@ -23,11 +21,9 @@ Install dependencies (requires Yarn v1):
yarn install --frozen-lockfile
```
-Use plain `yarn install` only when you are intentionally updating dependencies
-and reviewing the resulting `yarn.lock` changes.
+Use plain `yarn install` only when you are intentionally updating dependencies and reviewing the resulting `yarn.lock` changes.
-Now you can run in development mode (supports hot reload for the renderer
-process)
+Now you can run in development mode (supports hot reload for the renderer process)
```sh
yarn dev
@@ -39,5 +35,4 @@ Or create a binary for your platform
yarn build
```
-That's the gist of it. For more development related documentation, see
-[docs](docs/README.md).
+That's the gist of it. For more development related documentation, see [docs](docs/README.md).
diff --git a/desktop/docs/README.md b/desktop/docs/README.md
index ba98227776..ec8f8e48f6 100644
--- a/desktop/docs/README.md
+++ b/desktop/docs/README.md
@@ -1,11 +1,10 @@
# Developer docs
-If you just want to run the Ente Photos desktop app locally or develop it, you
-can do:
+If you just want to run the Ente Photos desktop app locally or develop it, you can do:
- yarn install --frozen-lockfile
- yarn dev
+```sh
+yarn install --frozen-lockfile
+yarn dev
+```
-The docs in this directory provide more details that some developers might find
-useful. You might also find the developer docs for
-[web](../../web/docs/README.md) useful.
+The docs in this directory provide more details that some developers might find useful. You might also find the developer docs for [web](../../web/docs/README.md) useful.
diff --git a/desktop/docs/dependencies.md b/desktop/docs/dependencies.md
index 4bf146c457..ac319c16c2 100644
--- a/desktop/docs/dependencies.md
+++ b/desktop/docs/dependencies.md
@@ -7,145 +7,90 @@
## Electron
-[Electron](https://www.electronjs.org) is a cross-platform (Linux, Windows,
-macOS) way for creating desktop apps using TypeScript.
-
-Electron embeds Chromium and Node.js in the generated app's binary. The
-generated app thus consists of two separate processes - the _main_ process, and
-a _renderer_ process.
-
-- The _main_ process runs the embedded node. This process can deal with the host
- OS - it is conceptually like a `node` repl running on your machine. In our
- case, the TypeScript code (in the `src/` directory) gets transpiled by `tsc`
- into JavaScript in the `build/app/` directory, which gets bundled in the
- generated app's binary and is loaded by the node (main) process when the app
- starts.
-
-- The _renderer_ process is a regular web app that gets loaded into the embedded
- Chromium. When the main process starts, it creates a new "window" that shows
- this embedded Chromium. In our case, we build and bundle a static export of
- the [Photos web app](../../web/README.md) in the generated desktop app. This
- gets loaded by the embedded Chromium at runtime, acting as the desktop app's
- UI.
+[Electron](https://www.electronjs.org) is a cross-platform (Linux, Windows, macOS) way for creating desktop apps using TypeScript.
+
+Electron embeds Chromium and Node.js in the generated app's binary. The generated app thus consists of two separate processes - the _main_ process, and a _renderer_ process.
+
+- The _main_ process runs the embedded node. This process can deal with the host OS - it is conceptually like a `node` repl running on your machine. In our case, the TypeScript code (in the `src/` directory) gets transpiled by `tsc` into JavaScript in the `build/app/` directory, which gets bundled in the generated app's binary and is loaded by the node (main) process when the app starts.
+
+- The _renderer_ process is a regular web app that gets loaded into the embedded Chromium. When the main process starts, it creates a new "window" that shows this embedded Chromium. In our case, we build and bundle a static export of the [Photos web app](../../web/README.md) in the generated desktop app. This gets loaded by the embedded Chromium at runtime, acting as the desktop app's UI.
There is also a third environment that gets temporarily created:
-- The [preload script](../src/preload.ts) acts as a gateway between the _main_
- and the _renderer_ process. It runs in its own isolated environment.
+- The [preload script](../src/preload.ts) acts as a gateway between the _main_ and the _renderer_ process. It runs in its own isolated environment.
### Packaging
-[Electron Builder](https://www.electron.build) is used for packaging the app for
-distribution.
+[Electron Builder](https://www.electron.build) is used for packaging the app for distribution.
-During the build it uses
-[electron-builder-notarize](https://github.com/karaggeorge/electron-builder-notarize)
-to notarize the macOS binary.
+During the build it uses [electron-builder-notarize](https://github.com/karaggeorge/electron-builder-notarize) to notarize the macOS binary.
### Updates
-[electron-updater](https://www.electron.build/auto-update#debugging), while a
-separate package, is also a part of Electron Builder. It provides an alternative
-to Electron's built in auto updater, with a more flexible API. It supports auto
-updates for the DMG, AppImage, DEB, RPM and NSIS packages.
+[electron-updater](https://www.electron.build/auto-update#debugging), while a separate package, is also a part of Electron Builder. It provides an alternative to Electron's built in auto updater, with a more flexible API. It supports auto updates for the DMG, AppImage, DEB, RPM and NSIS packages.
-[compare-versions](https://github.com/omichelsen/compare-versions) is used for
-semver comparisons when we decide when to trigger updates.
+[compare-versions](https://github.com/omichelsen/compare-versions) is used for semver comparisons when we decide when to trigger updates.
### Logging
-[electron-log](https://github.com/megahertz/electron-log) is used for logging.
-Specifically, it allows us to log to a file (in addition to the console of the
-Node.js process), and also handles log rotation and limiting the size of the log
-files.
+[electron-log](https://github.com/megahertz/electron-log) is used for logging. Specifically, it allows us to log to a file (in addition to the console of the Node.js process), and also handles log rotation and limiting the size of the log files.
### next-electron-server
-This spins up a server for serving files using a protocol handler inside our
-Electron process. This allows us to directly use the output produced by
-`next build` for loading into our renderer process.
+This spins up a server for serving files using a protocol handler inside our Electron process. This allows us to directly use the output produced by `next build` for loading into our renderer process.
### Others
-- [any-shell-escape](https://github.com/boazy/any-shell-escape) is for escaping
- shell commands before we execute them (e.g. say when invoking the embedded
- ffmpeg CLI).
+- [any-shell-escape](https://github.com/boazy/any-shell-escape) is for escaping shell commands before we execute them (e.g. say when invoking the embedded ffmpeg CLI).
-- [auto-launch](https://github.com/Teamwork/node-auto-launch) is for
- automatically starting our app on login, if the user so wishes.
+- [auto-launch](https://github.com/Teamwork/node-auto-launch) is for automatically starting our app on login, if the user so wishes.
-- [electron-store](https://github.com/sindresorhus/electron-store) is used for
- persisting user preferences and other arbitrary data.
+- [electron-store](https://github.com/sindresorhus/electron-store) is used for persisting user preferences and other arbitrary data.
## Dev
-See [web/docs/dependencies#dev](../../web/docs/dependencies.md#dev) for the
-general development experience related dependencies like TypeScript etc, which
-are similar to that in the web code.
+See [web/docs/dependencies#dev](../../web/docs/dependencies.md#dev) for the general development experience related dependencies like TypeScript etc, which are similar to that in the web code.
Some extra ones specific to the code here are:
-- [@tsconfig/recommended](https://github.com/tsconfig/bases) gives us a base
- tsconfig for the Node.js version that our current Electron version uses.
+- [@tsconfig/recommended](https://github.com/tsconfig/bases) gives us a base tsconfig for the Node.js version that our current Electron version uses.
-- [shx](https://github.com/shelljs/shx) provides us a portable way to use Unix
- commands in our `package.json` scripts. This allows us to use the same
- commands (like `ln`) across both POSIX platforms (Linux, macOS) and Windows.
+- [shx](https://github.com/shelljs/shx) provides us a portable way to use Unix commands in our `package.json` scripts. This allows us to use the same commands (like `ln`) across both POSIX platforms (Linux, macOS) and Windows.
-- [cross-env](https://github.com/kentcdodds/cross-env) is similar to shx, but
- for allowing us to set environment variables in a way that also works on
- Windows.
+- [cross-env](https://github.com/kentcdodds/cross-env) is similar to shx, but for allowing us to set environment variables in a way that also works on Windows.
-- We don't need `ajv`, but it is a transitive dependency which breaks the build
- if we let its version be resolved via the yarn resolution mechanism. Taking a
- direct dependency on it is the easiest workaround for now.
+- We don't need `ajv`, but it is a transitive dependency which breaks the build if we let its version be resolved via the yarn resolution mechanism. Taking a direct dependency on it is the easiest workaround for now.
## Functionality
### Format conversion
-For video conversions and metadata extraction, we use ffmpeg. To bundle a
-(platform specific) static binary of ffmpeg with our app, we use
-[ffmpeg-static](https://github.com/eugeneware/ffmpeg-static).
+For video conversions and metadata extraction, we use ffmpeg. To bundle a (platform specific) static binary of ffmpeg with our app, we use [ffmpeg-static](https://github.com/eugeneware/ffmpeg-static).
-> There is a significant (~20x) speed difference between using the compiled
-> FFmpeg binary and using the Wasm one (that our renderer process already has).
-> Which is why we bundle it to speed up operations on the desktop app.
+> There is a significant (~20x) speed difference between using the compiled FFmpeg binary and using the Wasm one (that our renderer process already has). Which is why we bundle it to speed up operations on the desktop app.
-On Linux and Windows, we use `vips` for thumbnail generation and JPEG conversion
-of unpreviewable images. A static OS/architecture specific binary of this is
-bundled in our extra resources (`build`) folder by `scripts/vips.sh` and/or
-`scripts/beforeBuild.js`. See "[Note: vips]" for more details.
+On Linux and Windows, we use `vips` for thumbnail generation and JPEG conversion of unpreviewable images. A static OS/architecture specific binary of this is bundled in our extra resources (`build`) folder by `scripts/vips.sh` and/or `scripts/beforeBuild.js`. See "[Note: vips]" for more details.
-On macOS, we use the `sips` CLI tool for these tasks, but that is already
-available on the host machine, and is not bundled with our app.
+On macOS, we use the `sips` CLI tool for these tasks, but that is already available on the host machine, and is not bundled with our app.
### ML
-[onnxruntime-node](https://github.com/Microsoft/onnxruntime) is used as the ML
-runtime. It powers both natural language searches (using CLIP) and face
-detection (using YOLO).
+[onnxruntime-node](https://github.com/Microsoft/onnxruntime) is used as the ML runtime. It powers both natural language searches (using CLIP) and face detection (using YOLO).
-[clip-bpe-js](https://github.com/simonwarchol/clip-bpe-js) is used for tokening
-the user's search phrase before computing its CLIP (text) embedding.
+[clip-bpe-js](https://github.com/simonwarchol/clip-bpe-js) is used for tokening the user's search phrase before computing its CLIP (text) embedding.
### ZIP
-[node-stream-zip](https://github.com/antelle/node-stream-zip) is used for
-reading of large ZIP files (e.g. during imports of Google Takeout ZIPs).
+[node-stream-zip](https://github.com/antelle/node-stream-zip) is used for reading of large ZIP files (e.g. during imports of Google Takeout ZIPs).
-[lru-cache](https://github.com/isaacs/node-lru-cache) is used to cache file ZIP
-handles to avoid reopening them for every operation.
+[lru-cache](https://github.com/isaacs/node-lru-cache) is used to cache file ZIP handles to avoid reopening them for every operation.
### Watch folders
-[chokidar](https://github.com/paulmillr/chokidar) is used as a file system
-watcher for the watch folders functionality.
+[chokidar](https://github.com/paulmillr/chokidar) is used as a file system watcher for the watch folders functionality.
## Pinned
-- `electron-builder` is pinned to 26.0.14 because of
- https://github.com/electron-userland/electron-builder/issues/9161
+- `electron-builder` is pinned to 26.0.14 because of https://github.com/electron-userland/electron-builder/issues/9161
- To reproduce this locally, add `x64ArchFiles: "ffmpeg"` to
- `electron-builder.yml`, then run `node_modules/.bin/electron-builder --mac`.
+ To reproduce this locally, add `x64ArchFiles: "ffmpeg"` to `electron-builder.yml`, then run `node_modules/.bin/electron-builder --mac`.
diff --git a/desktop/docs/dev.md b/desktop/docs/dev.md
index 612ec03a8f..2c041fd7f4 100644
--- a/desktop/docs/dev.md
+++ b/desktop/docs/dev.md
@@ -14,25 +14,14 @@ Launch the app in development mode:
Build a binary for your current platform.
-Note that our actual releases use a
-[GitHub workflow](../.github/workflows/desktop-release.yml) that is similar to
-this, except it builds binaries for all the supported OSes and uses production
-signing credentials.
+Note that our actual releases use a [GitHub workflow](../.github/workflows/desktop-release.yml) that is similar to this, except it builds binaries for all the supported OSes and uses production signing credentials.
-During development, you might find `yarn build:quick` helpful. It is a variant
-of `yarn build` that omits some steps to build a binary quicker, something that
-can be useful during development.
+During development, you might find `yarn build:quick` helpful. It is a variant of `yarn build` that omits some steps to build a binary quicker, something that can be useful during development.
### postinstall
-When using native node modules (those written in C/C++), we need to ensure they
-are built against `electron`'s packaged `node` version. We use
-[electron-builder](https://www.electron.build/cli)'s `install-app-deps` command
-to rebuild those modules automatically after each dependency install by
-invoking it in as the `postinstall` step in our package.json.
+When using native node modules (those written in C/C++), we need to ensure they are built against `electron`'s packaged `node` version. We use [electron-builder](https://www.electron.build/cli)'s `install-app-deps` command to rebuild those modules automatically after each dependency install by invoking it in as the `postinstall` step in our package.json.
### lint, lint:fix
-Use `yarn lint` to check that your code formatting is as expected, and that
-there are no linter errors. Use `yarn lint:fix` to try and automatically fix the
-issues.
+Use `yarn lint` to check that your code formatting is as expected, and that there are no linter errors. Use `yarn lint:fix` to try and automatically fix the issues.
diff --git a/desktop/docs/release.md b/desktop/docs/release.md
index 7c5192b3c6..f7f95f8e61 100644
--- a/desktop/docs/release.md
+++ b/desktop/docs/release.md
@@ -6,23 +6,17 @@ Conceptually, the release is straightforward:
2. When ready, we make that release the latest.
-3. The download links on our website, and existing apps already check the latest
- GitHub release and update automatically.
+3. The download links on our website, and existing apps already check the latest GitHub release and update automatically.
-The complication comes from the fact that electron-builder's auto updater (the
-mechanism that we use for auto updates) doesn't work with monorepos. So we need
-to keep a separate repository just for holding the releases.
+The complication comes from the fact that electron-builder's auto updater (the mechanism that we use for auto updates) doesn't work with monorepos. So we need to keep a separate repository just for holding the releases.
- Source code lives here, in [ente-io/ente](https://github.com/ente-io/ente).
-- Releases are done from
- [ente-io/photos-desktop](https://github.com/ente-io/photos-desktop).
+- Releases are done from [ente-io/photos-desktop](https://github.com/ente-io/photos-desktop).
## Nightly builds
-Nightly builds of `main` are published by a scheduled workflow automatically.
-Each such workflow run will update the artifacts attached to the same
-(pre-existing) pre-release.
+Nightly builds of `main` are published by a scheduled workflow automatically. Each such workflow run will update the artifacts attached to the same (pre-existing) pre-release.
If needed, this workflow can also be manually triggered:
@@ -110,12 +104,9 @@ gh workflow run desktop-release.yml --source=<branch>
To create extra one-off pre-releases in addition to the nightly `1.x.x-beta`s,
-1. In your branch in the source repository, set the version in `package.json` to
- something different, say `1.x.x-foo`.
+1. In your branch in the source repository, set the version in `package.json` to something different, say `1.x.x-foo`.
-2. Create a new pre-release in the release repo with title `1.x.x-foo`. In the
- tag input enter `v1.x.x-foo` and select the option to "Create a new tag on
- publish".
+2. Create a new pre-release in the release repo with title `1.x.x-foo`. In the tag input enter `v1.x.x-foo` and select the option to "Create a new tag on publish".
3. Trigger the workflow in the release repo:
@@ -125,29 +116,18 @@ To create extra one-off pre-releases in addition to the nightly `1.x.x-beta`s,
## Details
-The GitHub Action runs on Windows, Linux and macOS. It produces the artifacts
-defined in the `build` value in `package.json`.
+The GitHub Action runs on Windows, Linux and macOS. It produces the artifacts defined in the `build` value in `package.json`.
- Windows - An NSIS installer.
- Linux - An AppImage, and 3 other packages (`.rpm`, `.deb`, `.pacman`)
- macOS - A universal DMG
-Additionally, the GitHub action notarizes and signs the macOS DMG (For this it
-uses credentials provided via GitHub secrets).
+Additionally, the GitHub action notarizes and signs the macOS DMG (For this it uses credentials provided via GitHub secrets).
-To rollout the build, we need to publish the draft release. Thereafter,
-everything is automated:
+To rollout the build, we need to publish the draft release. Thereafter, everything is automated:
-- The website automatically redirects to the latest release on GitHub when
- people try to download.
+- The website automatically redirects to the latest release on GitHub when people try to download.
-- The file formats with support auto update (Windows `exe`, the Linux AppImage
- and the macOS DMG) also check the latest GitHub release automatically to
- download and apply the update (the rest of the formats don't support auto
- updates yet).
+- The file formats with support auto update (Windows `exe`, the Linux AppImage and the macOS DMG) also check the latest GitHub release automatically to download and apply the update (the rest of the formats don't support auto updates yet).
-- We're not putting the desktop app in other stores currently. It is available
- as a `brew cask`, but we only had to open a PR to add the initial formula, now
- their maintainers automatically bump the SHA, version number and the (derived
- from the version) URL in the formula when their tools notice a new release on
- our GitHub.
+- We're not putting the desktop app in other stores currently. It is available as a `brew cask`, but we only had to open a PR to add the initial formula, now their maintainers automatically bump the SHA, version number and the (derived from the version) URL in the formula when their tools notice a new release on our GitHub.