π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Prefix desktop nightly tags; fix sync-docs push token + doc link
Manav Rathi6df9d840c648
diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.ymlindex 1f68c7c37a..94f0f5e471 100644--- a/.github/workflows/app-release.yml+++ b/.github/workflows/app-release.yml@@ -104,9 +104,6 @@ jobs:expected_main_version="${VERSION}-beta"next_version="${next_version}-beta"fi- if [ "${APP}" = "photos-desktop" ]; then- beta_tag="v${VERSION}-beta"- finext_branch="${APP}-v${next_version}"main_version="$(app_version get)"@@ -179,7 +176,7 @@ jobs:git push origin "refs/tags/photos-desktop-v${VERSION}"GH_TOKEN="${APP_GH_TOKEN}" gh release edit "v${VERSION}" --repo ente-io/photos-desktop --draft=false --prerelease=false --latest- GH_TOKEN="${APP_GH_TOKEN}" gh release delete "v${VERSION}" --yes --cleanup-tag --repo ente-io/nightly || true+ GH_TOKEN="${APP_GH_TOKEN}" gh release delete "photos-desktop-v${VERSION}" --yes --cleanup-tag --repo ente-io/nightly || truegit_push_release_branch ":refs/heads/${release_branch}"exit 0fi@@ -248,7 +245,7 @@ jobs:git_push_branch() {git -c http.https://github.com/.extraheader= push \- "https://x-access-token:${APP_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"+ "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" "$@"}bot_id="$(gh api "/users/${APP_SLUG}[bot]" --jq .id)"diff --git a/.github/workflows/photos-desktop-build.yml b/.github/workflows/photos-desktop-build.ymlindex 3a68d5f350..1f4ad89382 100644--- a/.github/workflows/photos-desktop-build.yml+++ b/.github/workflows/photos-desktop-build.yml@@ -50,7 +50,7 @@ jobs:firelease_version="$(node .github/scripts/photos-desktop-version.mjs get)"- release_tag="v${release_version}"+ release_tag="photos-desktop-v${release_version}"if [[ "${GITHUB_REF_NAME}" == release/photos-desktop-v* ]]; thenif [[ "${GITHUB_REF_NAME}" != "release/photos-desktop-v${release_version}" ]]; then@@ -151,12 +151,11 @@ jobs:npm run build:ciplatform=${{ startsWith(matrix.os, 'macos') && 'mac' || startsWith(matrix.os, 'windows') && 'windows' || 'linux' }}- notes="-c.releaseInfo.releaseNotes=${RELEASE_BODY}"if [ "${IS_RC}" = "true" ]; then- npm exec -- electron-builder --$platform --publish always "$notes"+ npm exec -- electron-builder --$platform --publish always "-c.releaseInfo.releaseNotes=${RELEASE_BODY}"else- EP_PRE_RELEASE=true npm exec -- electron-builder --$platform --publish always "$notes" -c.publish.provider=github -c.publish.owner=ente-io -c.publish.repo=nightly+ npm exec -- electron-builder --$platform --publish neverfienv:GH_TOKEN: ${{ steps.nightly_token.outputs.token }}@@ -168,19 +167,18 @@ jobs:AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}- # Allow continually updating the rolling pre-release.+ # Allow rebuilds to keep updating the rolling RC draft.EP_GH_IGNORE_TIME: true# Workaround recommended in# https://github.com/electron-userland/electron-builder/issues/3179USE_HARD_LINKS: false- - name: Upload candidate installers to nightly- if: startsWith(github.ref_name, 'release/')+ - name: Upload to nightlyshell: bashenv:GH_TOKEN: ${{ steps.nightly_token.outputs.token }}run: |- tag="v${RELEASE_VERSION}"+ tag="photos-desktop-v${RELEASE_VERSION}"gh release create "${tag}" --repo ente-io/nightly --prerelease --title "${tag}" --notes "${RELEASE_BODY}" || trueshopt -s nullglobgh release upload "${tag}" dist/ente-*.{exe,dmg,AppImage,deb,rpm,pacman} --repo ente-io/nightly --clobberdiff --git a/desktop/docs/dev.md b/desktop/docs/dev.mdindex 3c7391ce97..5dbaf454d5 100644--- a/desktop/docs/dev.md+++ b/desktop/docs/dev.md@@ -35,7 +35,7 @@ The renderer scripts check that `../web` dependencies have been installed. If thBuild 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/photos-desktop-build.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 `npm run build:quick` helpful. It is a variant of `npm run build` that omits some steps to build a binary quicker, something that can be useful during development.