Commit graph

26404 commits

Author SHA1 Message Date
Neeraj Gupta da45ea3173 [auth] Improve _getDigits 2024-05-03 14:09:36 +05:30
Prateek Sunal 8bf9a2544c chore: bump version 2024-05-03 13:57:09 +05:30
Prateek Sunal b374dc0dd0 fix: add digits to setup page and create stream type 2024-05-03 13:56:59 +05:30
Neeraj Gupta 26e17d8464
[server][cast] Generate alphaNumberic codes for cast (#1595)
## Description

## Tests
2024-05-03 13:51:27 +05:30
Manav Rathi 3fafc5fd99
Use an Electron Builder version that supports notarytool
We need the following patch (from the release notes of v25.0.0-alpha.6)
https://github.com/electron-userland/electron-builder/releases

> feat: Make notarization with Apple ID more usable by
> https://github.com/electron-userland/electron-builder/pull/8159
2024-05-03 13:17:58 +05:30
ashilkn b221b80625 Merge branch 'main' into fix_bg_task_not_getting_killed 2024-05-03 13:12:24 +05:30
ashilkn 075d8d9769 [mob][photos] bump up version 2024-05-03 13:07:29 +05:30
ashilkn ec93a02674 [mob][photos] fix: BG process not getting killed when app is brought to foreground 2024-05-03 13:05:02 +05:30
Manav Rathi b24d80a267
Move to new notarization mechanism
Refs:
- https://www.electron.build/configuration/mac.html#NotarizeLegacyOptions
- https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/macPackager.ts
- https://github.com/samuelmeuli/action-electron-builder/issues/101
2024-05-03 13:02:19 +05:30
Neeraj Gupta 48bfe5b2fe
[web][cast] Use deviceCode generated by sever (#1594)
## Description

## Tests
2024-05-03 12:38:46 +05:30
Neeraj Gupta a62edad446 [server][cast] Fix err handling 2024-05-03 12:36:02 +05:30
Neeraj Gupta 627eab472c [server][cast] Only log ip mismatch instances 2024-05-03 12:32:16 +05:30
Neeraj Gupta ad5cfdc6db [server][cast] convert deviceCode input to upperCase 2024-05-03 12:31:26 +05:30
Neeraj Gupta 99b13d18b0 [server][cast] Generate alphaNumeric deviceCode 2024-05-03 12:29:32 +05:30
Neeraj Gupta 8a85932512 refactor 2024-05-03 12:27:48 +05:30
Neeraj Gupta b9b928797c [web][cast] Use server to generate deviceCode 2024-05-03 12:24:52 +05:30
Neeraj Gupta 48f24d48b5 [server] Move generateAlphaNumString to util 2024-05-03 12:11:35 +05:30
Manav Rathi 0f3555468d
Provide repository
Fixes:

    Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
    Please see https://electron.build/configuration/publish  failedTask=build stackTrace=Error: Cannot detect repository by .git/config. Please specify "repository" in the package.json (https://docs.npmjs.com/files/package.json#repository).
2024-05-03 12:09:03 +05:30
Prateek Sunal b52133fe57 fix: revert totp changes 2024-05-03 12:00:29 +05:30
Prateek Sunal c6084c6148 fix: add code error widget 2024-05-03 11:59:28 +05:30
Manav Rathi c04a30a37c
[web] New translations (#1586)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-web)
2024-05-03 11:31:06 +05:30
Manav Rathi 0165c72064
[desktop] Run the electron builder in the correct path (#1593)
Also add a convenience script to the [photos-desktop
repo](https://github.com/ente-io/photos-desktop/blob/main/.github/trigger-release.sh):

```sh
#!/bin/sh

set -o errexit

version="$1"
if test -z "$version"
then
    echo "usage: `basename $0` <version-including-v>"
    exit 1
fi

set -o xtrace

cp ../ente/desktop/CHANGELOG.md CHANGELOG.md
cp ../ente/desktop/.github/workflows/desktop-release.yml .github/workflows/
git add CHANGELOG.md .github/workflows/desktop-release.yml
git commit -m "$version"
git push origin main

git tag "$version"
git push origin "$version"
```
2024-05-03 11:30:17 +05:30
Manav Rathi e9feec37d5
Run the electron builder in the correct path 2024-05-03 11:28:06 +05:30
Manav Rathi 79e15827d3
[desktop] Use same convention as other preexisting tags in our repo (#1592) 2024-05-03 11:09:43 +05:30
Manav Rathi 5d0e62cf5f
Use same convention as other preexisting tags in our repo 2024-05-03 11:08:06 +05:30
Manav Rathi d68e607d4a
[desktop] Fix ref ref in action (#1591)
ref_name is the (from my understanding) the shorthand we need for
prefixing. Untested, will do a test build.
2024-05-03 11:02:46 +05:30
Manav Rathi 647cc0d803
[desktop] Fix ref ref in action
ref_name is the (from my understanding) the shorthand we need for prefixing. Untested, will do a test build.
2024-05-03 11:00:55 +05:30
Manav Rathi 383d570ece
[desktop] Prepare for beta release (#1590) 2024-05-03 10:51:45 +05:30
Manav Rathi ddad863b31
Prepare for release 2024-05-03 10:50:21 +05:30
Neeraj Gupta 486d89f506
[mob] Log n/w when mobileBackUpIsDisabled and backup is happening (#1589)
## Description

## Tests
2024-05-03 10:34:34 +05:30
Neeraj Gupta 024f160ca0 [mob] Improve log 2024-05-03 10:14:27 +05:30
Neeraj Gupta cdfbd402d2
[cli] Documentation improvement (#1587)
- Clarify that config.yaml needs to go to CWD
- Add a notice about ente account add (I think it is the second time
someone got confused about this)

Maybe we can also print a notice or the help docs when `ente` is run
without any arguments (just a thought for future changes)
2024-05-03 10:02:15 +05:30
Manav Rathi 977d212be6
Add a notice about ente account add 2024-05-03 09:42:17 +05:30
Manav Rathi 3eda263d26
Clarify cwd 2024-05-03 09:38:58 +05:30
Crowdin Bot d08c2b4fa0 New Crowdin translations by GitHub Action 2024-05-03 01:40:38 +00:00
Prateek Sunal b860d3a056 fix: push theme for button 2024-05-03 01:59:43 +05:30
Manav Rathi 9324c739fd
[desktop] Electron 30 (#1584)
Upgrade to Electron 30 to get the streaming request fix we need.

Also add a workaround to get POSIX paths from webUtils on Windows. For
the test case, see this
[Fiddle](https://gist.github.com/mnvr/91eaca21b0651926565274ee80f10ad5).
2024-05-02 21:49:44 +05:30
Prateek Sunal 25fb9cfe13 fix: add new ente button 2024-05-02 21:42:16 +05:30
Prateek Sunal ab93eb4e8e fix: bump gradlew files 2024-05-02 21:40:59 +05:30
Manav Rathi 0c4da8c86a
POSIX paths 2024-05-02 21:38:02 +05:30
Manav Rathi 6a99002064
Start using it 2024-05-02 21:25:44 +05:30
Manav Rathi 67eed1aa89
Upgrade to Electron 30
This picks up the stream fix we need
> Fixed data corruption when protocol.handle() processed incoming data asynchronously. #41933 (Also in 31)
>
> https://github.com/electron/electron/releases/tag/v30.0.2
2024-05-02 21:20:26 +05:30
Manav Rathi 151e7abc19
[desktop] Resurrect desktop build (#1583)
Untested, this is the plan.
2024-05-02 20:25:13 +05:30
Manav Rathi 2f2d15c9f2
lint 2024-05-02 20:22:40 +05:30
Manav Rathi fecfb4a8b7
Hopes and dreams 2024-05-02 19:52:39 +05:30
Manav Rathi 3b3d24e9e0
It'll need to live in the releases repo, reword accordingly 2024-05-02 19:34:58 +05:30
Manav Rathi aed781b0ff
Use same credentials as the auth app
While we won't actually be using the monorepo for releases, get the action to a
known state:

- MAC_OS_CERTIFICATE and MAC_OS_CERTIFICATE_PASSWORD is the same GitHub secret
  that the auth app already uses

- Need to add APPLE_API_KEY, APPLE_API_KEY_ID, APPLE_API_KEY_ISSUER_ID.
2024-05-02 19:05:52 +05:30
Manav Rathi fa182b951d
[desktop] Resurrect build
Untested
2024-05-02 12:55:08 +05:30
Manav Rathi 85522a946a
[desktop] Short-circuit ML (#1580)
This is so that we can make a release. Post-release, we'll come back to
this and give it the finishing touches and re-enable it. This avoids
doing a re-indexing for actual users in case we need to change stuff
during the finishing touches.
2024-05-02 12:07:09 +05:30
Manav Rathi 68721b8168
Pick from the correct table 2024-05-02 11:11:24 +05:30