Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

update: the app checks GitHub for releases and downloads the APK natively

Duarte Santos8a495f32fefc
diff --git a/frontend/android/app/src/main/java/ch/duartesantos/opengym/InstallPlugin.java b/frontend/android/app/src/main/java/ch/duartesantos/opengym/InstallPlugin.java
index 3fdd7c7d6..244fbd107 100644
--- a/frontend/android/app/src/main/java/ch/duartesantos/opengym/InstallPlugin.java
+++ b/frontend/android/app/src/main/java/ch/duartesantos/opengym/InstallPlugin.java
@@ -8,6 +8,9 @@ import com.getcapacitor.PluginCall;
import com.getcapacitor.PluginMethod;
import com.getcapacitor.annotation.CapacitorPlugin;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.InputStream;
+import java.security.MessageDigest;
/**
* Minimal local Capacitor plugin that opens the Android package installer
@@ -16,7 +19,10 @@ import java.io.File;
* Usage from JS:
* import { registerPlugin } from '@capacitor/core';
* const Install = registerPlugin('Install');
- * await Install.installApk({ fileName: 'opengym-update.apk' });
+ * await Install.installApk({ fileName: 'opengym-update.apk', sha256: '<64 hex>' });
+ *
+ * With `sha256` the file is streamed through SHA-256 first and a mismatch is refused (and the
+ * file deleted) before the installer opens: the APK is ~300 MB, too big to hash in the WebView.
*/
@CapacitorPlugin(name = "Install")
public class InstallPlugin extends Plugin {
@@ -35,6 +41,20 @@ public class InstallPlugin extends Plugin {
return;
}
+ String expected = call.getString("sha256");
+ if (expected != null && !expected.isEmpty()) {
+ try {
+ if (!expected.equalsIgnoreCase(sha256(file))) {
+ file.delete();
+ call.reject("SHA-256 mismatch: the download may be corrupted or tampered with");
+ return;
+ }
+ } catch (Exception e) {
+ call.reject("Could not check the download: " + e.getMessage());
+ return;
+ }
+ }
+
Uri uri = FileProvider.getUriForFile(
getContext(),
getContext().getPackageName() + ".fileprovider",
@@ -48,4 +68,15 @@ public class InstallPlugin extends Plugin {
getContext().startActivity(intent);
call.resolve();
}
+
+ private static String sha256(File file) throws Exception {
+ MessageDigest md = MessageDigest.getInstance("SHA-256");
+ byte[] buf = new byte[1 << 16];
+ try (InputStream in = new FileInputStream(file)) {
+ for (int n; (n = in.read(buf)) > 0; ) md.update(buf, 0, n);
+ }
+ StringBuilder hex = new StringBuilder();
+ for (byte b : md.digest()) hex.append(String.format("%02x", b));
+ return hex.toString();
+ }
}
diff --git a/frontend/src/lib/update.js b/frontend/src/lib/update.js
index b707e2965..793191663 100644
--- a/frontend/src/lib/update.js
+++ b/frontend/src/lib/update.js
@@ -1,14 +1,19 @@
// Update check — compares the installed version (__APP_VERSION__) against
-// the latest release tag on GitLab and optionally downloads + installs the APK.
+// the latest release on GitHub and optionally downloads + installs the APK.
//
-// The GitLab releases API is public for this project, so no token is needed.
-// On Android (Capacitor), the APK asset is downloaded to the cache directory
-// and handed to the system installer via a content:// URI.
+// The GitHub releases API is public, so no token is needed (60 requests an hour per address,
+// and the check runs once per app session). GitHub is openGym's home since v1.4.0; the GitLab
+// mirror stopped getting releases, so a phone that asked it saw no update.
+// On Android (Capacitor) the APK is downloaded natively into the cache directory (an APK with
+// the animations is ~300 MB: read into the WebView's memory it ran phones out of it, and
+// github.com's download redirect has no CORS headers for a WebView fetch anyway), checked
+// against its SHA-256 by the native Install plugin and handed to the system installer.
import { MOBILE } from './mobile.js'
-const GITLAB_PROJECT_ID = 'DuarteSantos8%2Fopengym'
-const RELEASES_URL = `https://gitlab.com/api/v4/projects/${GITLAB_PROJECT_ID}/releases`
+const REPO = 'DuarteSantos8/openGym'
+const LATEST_URL = `https://api.github.com/repos/${REPO}/releases/latest`
+export const RELEASES_PAGE = `https://github.com/${REPO}/releases/latest`
/**
* Compares two semver strings (e.g. "1.2.11" vs "1.3.0").
@@ -33,14 +38,15 @@ function compareSemver(a, b) {
}
/**
- * Checks the GitLab releases API for a newer version.
+ * Checks GitHub for a newer version. `releases/latest` is the newest release that is neither a
+ * draft nor a pre-release, so a beta never offers itself as an update.
* Returns { hasUpdate, latestVersion, apkUrl, hashUrl } or throws on network failure.
* - hasUpdate: true if the latest release tag is newer than the running build
* - latestVersion: the semver string of the latest release (without "v" prefix)
* - apkUrl: direct download URL of the first .apk asset, or null
* - hashUrl: direct download URL of the .apk.sha256 hash file, or null
*/
-// One request per app session: Settings is opened often, gitlab.com does not need to hear
+// One request per app session: Settings is opened often, GitHub does not need to hear
// about it every time. The promise is cached, a failure is not.
let cached = null
export function resetUpdateCheck() { cached = null }
@@ -49,27 +55,38 @@ export async function checkForUpdate() {
return cached
}
async function fetchLatest() {
- const res = await fetch(RELEASES_URL + '?per_page=1')
- if (!res.ok) throw new Error(`GitLab API ${res.status}`)
- const releases = await res.json()
- if (!releases.length) return { hasUpdate: false, latestVersion: __APP_VERSION__, apkUrl: null, hashUrl: null }
-
- const latest = releases[0]
- const latestVersion = latest.tag_name.replace(/^v/, '')
+ const res = await fetch(LATEST_URL, { headers: { Accept: 'application/vnd.github+json' } })
+ // 404: the repository has no published release yet
+ if (res.status === 404) return { hasUpdate: false, latestVersion: __APP_VERSION__, apkUrl: null, hashUrl: null }
+ if (!res.ok) throw new Error(`GitHub API ${res.status}`)
+ const latest = await res.json()
+ const latestVersion = String(latest.tag_name || '').replace(/^v/, '')
+ if (!latestVersion) return { hasUpdate: false, latestVersion: __APP_VERSION__, apkUrl: null, hashUrl: null }
const hasUpdate = compareSemver(latestVersion, __APP_VERSION__) > 0
+ const assets = latest.assets || []
+ const apk = assets.find(a => /\.apk$/i.test(a.name))
+ const hash = assets.find(a => /\.apk\.sha256$/i.test(a.name))
+ return { hasUpdate, latestVersion, apkUrl: apk?.browser_download_url || null, hashUrl: hash?.browser_download_url || null }
+}
- // Find the APK asset among the release links (generic package links) or assets.sources
- let apkUrl = null
- let hashUrl = null
- if (latest.assets?.links?.length) {
- const apkLink = latest.assets.links.find(l => /\.apk$/i.test(l.url) || /\.apk$/i.test(l.direct_asset_url))
- if (apkLink) apkUrl = apkLink.direct_asset_url || apkLink.url
- // Look for a matching .sha256 hash file
- const hashLink = latest.assets.links.find(l => /\.apk\.sha256$/i.test(l.url) || /\.apk\.sha256$/i.test(l.direct_asset_url) || /sha256/i.test(l.name))
- if (hashLink) hashUrl = hashLink.direct_asset_url || hashLink.url
+/**
+ * The SHA-256 the release publishes next to its APK, as 64 hex characters, or null. In the app it
+ * comes down natively like the APK itself (github.com answers a WebView fetch without CORS).
+ */
+export async function fetchChecksum(hashUrl) {
+ if (!hashUrl) return null
+ let text
+ if (MOBILE) {
+ const { Filesystem, Directory, Encoding } = await import('@capacitor/filesystem')
+ await Filesystem.downloadFile({ url: hashUrl, path: 'opengym-update.apk.sha256', directory: Directory.Cache })
+ text = (await Filesystem.readFile({ path: 'opengym-update.apk.sha256', directory: Directory.Cache, encoding: Encoding.UTF8 })).data
+ } else {
+ const res = await fetch(hashUrl)
+ if (!res.ok) return null
+ text = await res.text()
}
-
- return { hasUpdate, latestVersion, apkUrl, hashUrl }
+ const hex = String(text).trim().split(/\s/)[0]
+ return /^[0-9a-f]{64}$/i.test(hex) ? hex.toLowerCase() : null
}
/**
@@ -82,74 +99,33 @@ export async function sha256(buffer) {
}
/**
- * Downloads the APK from `url`, verifies its SHA-256 hash against `expectedHash`
- * (if provided), and triggers the Android installer.
- * Only works on the MOBILE (Capacitor) build with Android.
+ * Downloads the APK from `url` into the cache directory, natively and straight to disk, and
+ * hands it to the Install plugin, which checks it against `expectedHash` before the installer
+ * opens. Only works on the MOBILE (Capacitor) build with Android.
*
* @param {string} url - Direct download URL for the APK
- * @param {string|null} expectedHash - Expected SHA-256 hex string (from .sha256 asset), or null to skip verification
+ * @param {string} expectedHash - Expected SHA-256 hex string (from the .sha256 asset)
* @param {function|null} onProgress - Called with (received, total) bytes during download, or null
*/
-export async function downloadAndInstall(url, expectedHash = null, onProgress = null) {
+export async function downloadAndInstall(url, expectedHash, onProgress = null) {
if (!MOBILE) {
- // On web, just open the release page
- window.open('https://gitlab.com/DuarteSantos8/opengym/-/releases', '_blank', 'noopener')
+ window.open(RELEASES_PAGE, '_blank', 'noopener')
return
}
-
+ if (!/^[0-9a-f]{64}$/i.test(expectedHash || '')) throw new Error('no checksum to verify the download against')
const { Filesystem, Directory } = await import('@capacitor/filesystem')
-
- // Download with progress tracking via ReadableStream
- const res = await fetch(url)
- if (!res.ok) throw new Error(`Download failed: ${res.status}`)
-
- const total = parseInt(res.headers.get('content-length') || '0', 10)
- const reader = res.body.getReader()
- const chunks = []
- let received = 0
-
- for (;;) {
- const { done, value } = await reader.read()
- if (done) break
- chunks.push(value)
- received += value.length
- if (onProgress) onProgress(received, total)
- }
-
- // Reassemble into a single blob
- const blob = new Blob(chunks)
-
- // Size check: an APK should be at least 100 KB
- if (blob.size < 100_000) {
- throw new Error('Downloaded file is too small to be a valid APK (' + blob.size + ' bytes)')
- }
-
- // SHA-256 integrity check
- if (expectedHash) {
- const buffer = await blob.arrayBuffer()
- const actualHash = await sha256(buffer)
- if (actualHash !== expectedHash.toLowerCase().trim()) {
- throw new Error('SHA-256 mismatch: the download may be corrupted or tampered with')
- }
- }
-
- // Convert blob to base64
- const base64 = await new Promise((resolve, reject) => {
- const reader = new FileReader()
- reader.onload = () => resolve(reader.result.split(',')[1])
- reader.onerror = reject
- reader.readAsDataURL(blob)
- })
-
const fileName = 'opengym-update.apk'
- await Filesystem.writeFile({
- path: fileName,
- directory: Directory.Cache,
- data: base64,
- })
-
- // Use the local InstallPlugin to trigger the Android package installer
+ const listener = onProgress
+ ? await Filesystem.addListener('progress', p => onProgress(p.bytes, p.contentLength))
+ : null
+ try {
+ await Filesystem.downloadFile({ url, path: fileName, directory: Directory.Cache, progress: !!onProgress })
+ } finally {
+ await listener?.remove()
+ }
+ // The Install plugin streams the file through SHA-256 natively (300 MB never enter the
+ // WebView) and refuses a mismatch before the installer opens.
const { registerPlugin } = await import('@capacitor/core')
const Install = registerPlugin('Install')
- await Install.installApk({ fileName })
+ await Install.installApk({ fileName, sha256: expectedHash.toLowerCase() })
}
diff --git a/frontend/src/lib/update.test.js b/frontend/src/lib/update.test.js
index 874529dea..daee19f41 100644
--- a/frontend/src/lib/update.test.js
+++ b/frontend/src/lib/update.test.js
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
-import { checkForUpdate, sha256, resetUpdateCheck } from './update.js'
+import { checkForUpdate, sha256, resetUpdateCheck, fetchChecksum } from './update.js'
// __APP_VERSION__ is defined at build time by vite.config.js (reads package.json).
// In the test environment vitest applies the same define, so it's available here.
@@ -38,9 +38,16 @@ describe('checkForUpdate', () => {
json: () => Promise.resolve(body),
}))
}
+ const asset = (name, url = 'https://github.com/x/releases/download/v9/' + name) => ({ name, browser_download_url: url })
+
+ it('asks GitHub for the latest published release (never a draft or a beta)', async () => {
+ mockFetch({ tag_name: 'v' + __APP_VERSION__, assets: [] })
+ await checkForUpdate()
+ expect(globalThis.fetch.mock.calls[0][0]).toBe('https://api.github.com/repos/DuarteSantos8/openGym/releases/latest')
+ })
it('reports no update when the latest release matches the current version', async () => {
- mockFetch([{ tag_name: 'v' + __APP_VERSION__, assets: { links: [] } }])
+ mockFetch({ tag_name: 'v' + __APP_VERSION__, assets: [] })
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(false)
expect(result.latestVersion).toBe(__APP_VERSION__)
@@ -49,178 +56,70 @@ describe('checkForUpdate', () => {
})
it('reports no update when the latest release is older than current', async () => {
- mockFetch([{ tag_name: 'v0.0.1', assets: { links: [] } }])
+ mockFetch({ tag_name: 'v0.0.1', assets: [] })
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(false)
expect(result.latestVersion).toBe('0.0.1')
})
it('reports an update when the latest release is newer', async () => {
- mockFetch([{ tag_name: 'v99.0.0', assets: { links: [] } }])
+ mockFetch({ tag_name: 'v99.0.0', assets: [] })
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(true)
expect(result.latestVersion).toBe('99.0.0')
})
- it('strips the v prefix from the tag name', async () => {
- mockFetch([{ tag_name: 'v99.1.2', assets: { links: [] } }])
- const result = await checkForUpdate()
- expect(result.latestVersion).toBe('99.1.2')
- })
-
it('handles tag names without a v prefix', async () => {
- mockFetch([{ tag_name: '99.0.0', assets: { links: [] } }])
+ mockFetch({ tag_name: '99.1.2', assets: [] })
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(true)
- expect(result.latestVersion).toBe('99.0.0')
+ expect(result.latestVersion).toBe('99.1.2')
})
- it('finds the APK download URL from release asset links', async () => {
- const apkUrl = 'https://gitlab.com/project/-/releases/v2.0.0/downloads/opengym.apk'
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: { links: [{ url: apkUrl, direct_asset_url: apkUrl }] }
- }])
+ // What api.github.com returned for releases/latest on 2026-10-10 (v1.4.0, trimmed): the APK
+ // and its checksum as release assets. The checksum file also ends in neither .apk nor
+ // anything else the APK match could take.
+ const REAL_RELEASE = {
+ tag_name: 'v1.4.0',
+ assets: [
+ { name: 'openGym-1.4.0.apk', browser_download_url: 'https://github.com/DuarteSantos8/openGym/releases/download/v1.4.0/openGym-1.4.0.apk' },
+ { name: 'openGym-1.4.0.apk.sha256', browser_download_url: 'https://github.com/DuarteSantos8/openGym/releases/download/v1.4.0/openGym-1.4.0.apk.sha256' },
+ ],
+ }
+
+ it('finds the APK and its checksum in a real GitHub release payload', async () => {
+ mockFetch(REAL_RELEASE)
const result = await checkForUpdate()
- expect(result.apkUrl).toBe(apkUrl)
+ expect(result.latestVersion).toBe('1.4.0')
+ expect(result.apkUrl).toBe('https://github.com/DuarteSantos8/openGym/releases/download/v1.4.0/openGym-1.4.0.apk')
+ expect(result.hashUrl).toBe('https://github.com/DuarteSantos8/openGym/releases/download/v1.4.0/openGym-1.4.0.apk.sha256')
})
- it('prefers direct_asset_url over url for APK links', async () => {
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: {
- links: [{
- url: 'https://redirect.example/opengym.apk',
- direct_asset_url: 'https://direct.example/opengym.apk'
- }]
- }
- }])
+ it('does not take the checksum for the APK when it is listed first', async () => {
+ mockFetch({ tag_name: 'v99.0.0', assets: [asset('a.apk.sha256'), asset('sbom.json'), asset('a.apk')] })
const result = await checkForUpdate()
- expect(result.apkUrl).toBe('https://direct.example/opengym.apk')
+ expect(result.apkUrl).toMatch(/\/a\.apk$/)
+ expect(result.hashUrl).toMatch(/\/a\.apk\.sha256$/)
})
- it('returns null apkUrl when no .apk link exists', async () => {
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: { links: [{ url: 'https://example.com/changelog.md', direct_asset_url: 'https://example.com/changelog.md' }] }
- }])
+ it('returns null URLs when the release has no APK or checksum', async () => {
+ mockFetch({ tag_name: 'v99.0.0', assets: [asset('changelog.md')] })
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(true)
expect(result.apkUrl).toBe(null)
- })
-
- it('finds the .sha256 hash URL from release asset links', async () => {
- const hashUrl = 'https://gitlab.com/project/-/releases/v2.0.0/downloads/opengym.apk.sha256'
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: {
- links: [
- { url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' },
- { url: hashUrl, direct_asset_url: hashUrl },
- ]
- }
- }])
- const result = await checkForUpdate()
- expect(result.hashUrl).toBe(hashUrl)
- })
-
- it('finds hash URL by link name containing sha256', async () => {
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: {
- links: [
- { name: 'APK', url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' },
- { name: 'SHA256 checksum', url: 'https://example.com/checksum.txt', direct_asset_url: 'https://example.com/checksum.txt' },
- ]
- }
- }])
- const result = await checkForUpdate()
- expect(result.hashUrl).toBe('https://example.com/checksum.txt')
- })
-
- // The exact JSON gitlab.com returns for GET /projects/85678327/releases?per_page=1 (v1.3.1,
- // fetched 2026-09-05, description and commit trimmed). The CI publishes the APK and its
- // checksum as generic-package links, and the checksum link is listed BEFORE the APK — the
- // detection must not confuse the two.
- const REAL_RELEASE = [
- {
- "tag_name": "v1.3.1",
- "name": "openGym v1.3.1",
- "assets": {
- "count": 7,
- "sources": [
- {
- "format": "zip",
- "url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.zip"
- },
- {
- "format": "tar.gz",
- "url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar.gz"
- },
- {
- "format": "tar.bz2",
- "url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar.bz2"
- },
- {
- "format": "tar",
- "url": "https://gitlab.com/DuarteSantos8/opengym/-/archive/v1.3.1/opengym-v1.3.1.tar"
- }
- ],
- "links": [
- {
- "id": 12790840,
- "name": "Container images (api + web)",
- "url": "https://gitlab.com/DuarteSantos8/opengym/container_registry",
- "direct_asset_url": "https://gitlab.com/DuarteSantos8/opengym/container_registry",
- "link_type": "image"
- },
- {
- "id": 12790839,
- "name": "openGym-1.3.1.apk.sha256 (checksum)",
- "url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256",
- "direct_asset_url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256",
- "link_type": "other"
- },
- {
- "id": 12790838,
- "name": "openGym-1.3.1.apk (Android, sideload)",
- "url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk",
- "direct_asset_url": "https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk",
- "link_type": "package"
- }
- ]
- }
- }
- ]
-
- it('finds the APK and its checksum in a real gitlab.com release payload', async () => {
- mockFetch(REAL_RELEASE)
- const result = await checkForUpdate()
- expect(result.latestVersion).toBe('1.3.1')
- expect(result.apkUrl).toBe('https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk')
- expect(result.hashUrl).toBe('https://gitlab.com/api/v4/projects/85678327/packages/generic/opengym-android/1.3.1/openGym-1.3.1.apk.sha256')
- })
-
- it('returns null hashUrl when no hash link exists', async () => {
- mockFetch([{
- tag_name: 'v99.0.0',
- assets: { links: [{ url: 'https://example.com/opengym.apk', direct_asset_url: 'https://example.com/opengym.apk' }] }
- }])
- const result = await checkForUpdate()
expect(result.hashUrl).toBe(null)
})
- it('returns no update when the releases array is empty', async () => {
- mockFetch([])
+ it('returns no update when the repository has no release yet (404)', async () => {
+ mockFetch({ message: 'Not Found' }, 404)
const result = await checkForUpdate()
expect(result.hasUpdate).toBe(false)
expect(result.latestVersion).toBe(__APP_VERSION__)
- expect(result.hashUrl).toBe(null)
})
it('throws when the API responds with an error status', async () => {
mockFetch(null, 500)
- await expect(checkForUpdate()).rejects.toThrow('GitLab API 500')
+ await expect(checkForUpdate()).rejects.toThrow('GitHub API 500')
})
it('throws on network failure', async () => {
@@ -229,6 +128,24 @@ describe('checkForUpdate', () => {
})
})
+describe('fetchChecksum (web)', () => {
+ let originalFetch
+ beforeEach(() => { originalFetch = globalThis.fetch })
+ afterEach(() => { globalThis.fetch = originalFetch })
+ const serve = text => { globalThis.fetch = vi.fn(() => Promise.resolve({ ok: true, text: () => Promise.resolve(text) })) }
+
+ it('reads the hash out of a sha256sum line', async () => {
+ serve('EC2822' + 'a'.repeat(58) + ' openGym-1.4.0.apk\n')
+ expect(await fetchChecksum('https://x/a.apk.sha256')).toBe('ec2822' + 'a'.repeat(58))
+ })
+
+ it('gives null for anything that is not a SHA-256, or no URL', async () => {
+ serve('<html>not found</html>')
+ expect(await fetchChecksum('https://x/a.apk.sha256')).toBe(null)
+ expect(await fetchChecksum(null)).toBe(null)
+ })
+})
+
describe('semver comparison (via checkForUpdate behavior)', () => {
let originalFetch
beforeEach(() => { originalFetch = globalThis.fetch; resetUpdateCheck() })
@@ -237,7 +154,7 @@ describe('semver comparison (via checkForUpdate behavior)', () => {
function mockRelease(tag) {
globalThis.fetch = vi.fn(() => Promise.resolve({
ok: true, status: 200,
- json: () => Promise.resolve([{ tag_name: tag, assets: { links: [] } }]),
+ json: () => Promise.resolve({ tag_name: tag, assets: [] }),
}))
}
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index a6e1ec87b..92a675f91 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -1285,7 +1285,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'تعذّر التحقق من التحديثات. هل أنت متصل بالإنترنت؟',
'Get the Android app': 'احصل على تطبيق أندرويد',
'Download the APK from opengym.ch': 'نزّل ملف APK من opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'يُتحقق من الإصدارات على gitlab.com. ويُتحقق من التنزيل مقابل بصمته قبل فتح المثبّت.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'يُتحقق من الإصدارات على GitHub. ويُتحقق من التنزيل مقابل بصمته قبل فتح المثبّت.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'يتحدث تطبيق الويب مع خادمك. أما تطبيق أندرويد فيثبّت تحديثاته من هنا.',
'Starting download…': 'جارٍ بدء التنزيل…',
'Downloading update…': 'جارٍ تنزيل التحديث…',
diff --git a/frontend/src/locales/bn.js b/frontend/src/locales/bn.js
index 777816bd0..44c88cd52 100644
--- a/frontend/src/locales/bn.js
+++ b/frontend/src/locales/bn.js
@@ -1447,7 +1447,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'আপডেট দেখা যায়নি। আপনি কি অনলাইনে আছেন?',
'Get the Android app': 'Android অ্যাপ নিন',
'Download the APK from opengym.ch': 'opengym.ch থেকে APK ডাউনলোড করুন',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'রিলিজগুলো gitlab.com-এ দেখা হয়। ইনস্টলার খোলার আগে ডাউনলোডটি তার চেকসাম দিয়ে যাচাই করা হয়।',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'রিলিজগুলো GitHub-এ দেখা হয়। ইনস্টলার খোলার আগে ডাউনলোডটি তার চেকসাম দিয়ে যাচাই করা হয়।',
'The web app updates together with your server. The Android app installs its own updates from here.': 'ওয়েব অ্যাপ আপনার সার্ভারের সাথে একসাথে আপডেট হয়। Android অ্যাপ এখান থেকে নিজের আপডেট ইনস্টল করে।',
'Starting download…': 'ডাউনলোড শুরু হচ্ছে…',
'Downloading update…': 'আপডেট ডাউনলোড হচ্ছে…',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index c5a2fc9b8..1593a8587 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -1409,7 +1409,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Update-Prüfung fehlgeschlagen. Bist du online?',
'Get the Android app': 'Android-App holen',
'Download the APK from opengym.ch': 'APK von opengym.ch laden',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Releases werden auf gitlab.com geprüft. Der Download wird vor dem Öffnen des Installers gegen seine Prüfsumme verifiziert.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Releases werden auf GitHub geprüft. Der Download wird vor dem Öffnen des Installers gegen seine Prüfsumme verifiziert.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'Die Web-App aktualisiert sich mit deinem Server. Die Android-App installiert ihre Updates von hier aus.',
'Starting download…': 'Download wird gestartet…',
'Downloading update…': 'Update wird heruntergeladen…',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 6302da227..db601873f 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'No se pudo buscar actualizaciones. ¿Estás conectado?',
'Get the Android app': 'Descargar la app de Android',
'Download the APK from opengym.ch': 'Descarga el APK desde opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Las versiones se comprueban en gitlab.com. La descarga se verifica con su suma de comprobación antes de abrir el instalador.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Las versiones se comprueban en GitHub. La descarga se verifica con su suma de comprobación antes de abrir el instalador.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'La app web se actualiza junto con tu servidor. La app de Android instala sus actualizaciones desde aquí.',
'Starting download…': 'Iniciando descarga…',
'Downloading update…': 'Descargando actualización…',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index 92d6b982f..cb58c8e6b 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Impossible de vérifier les mises à jour. Es-tu en ligne ?',
'Get the Android app': 'Télécharger l’app Android',
'Download the APK from opengym.ch': 'Télécharge l’APK depuis opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Les versions sont vérifiées sur gitlab.com. Le téléchargement est contrôlé avec sa somme de contrôle avant l’ouverture de l’installateur.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Les versions sont vérifiées sur GitHub. Le téléchargement est contrôlé avec sa somme de contrôle avant l’ouverture de l’installateur.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'L’app web se met à jour avec ton serveur. L’app Android installe ses mises à jour depuis ici.',
'Starting download…': 'Démarrage du téléchargement…',
'Downloading update…': 'Téléchargement de la mise à jour…',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index 428293067..7e16c39e1 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'अपडेट जाँच नहीं हो सकी। क्या आप ऑनलाइन हैं?',
'Get the Android app': 'Android ऐप लें',
'Download the APK from opengym.ch': 'opengym.ch से APK डाउनलोड करें',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'रिलीज़ gitlab.com पर जाँची जाती हैं। इंस्टॉलर खुलने से पहले डाउनलोड की चेकसम से पुष्टि होती है।',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'रिलीज़ GitHub पर जाँची जाती हैं। इंस्टॉलर खुलने से पहले डाउनलोड की चेकसम से पुष्टि होती है।',
'The web app updates together with your server. The Android app installs its own updates from here.': 'वेब ऐप आपके सर्वर के साथ अपडेट होता है। Android ऐप अपने अपडेट यहीं से इंस्टॉल करता है।',
'Starting download…': 'डाउनलोड शुरू हो रहा है…',
'Downloading update…': 'अपडेट डाउनलोड हो रहा है…',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 7525e37ce..1c83bb636 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Nem sikerült frissítéseket keresni. Online vagy?',
'Get the Android app': 'Android-alkalmazás letöltése',
'Download the APK from opengym.ch': 'Töltsd le az APK-t az opengym.ch oldalról',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'A kiadásokat a gitlab.com-on ellenőrizzük. A letöltést a telepítő megnyitása előtt az ellenőrzőösszeggel vetjük össze.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'A kiadásokat a GitHub-on ellenőrizzük. A letöltést a telepítő megnyitása előtt az ellenőrzőösszeggel vetjük össze.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'A webalkalmazás a szerverrel együtt frissül. Az Android-alkalmazás innen telepíti a frissítéseit.',
'Starting download…': 'Letöltés indítása…',
'Downloading update…': 'Frissítés letöltése…',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index e02371a1d..496ab1b7f 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Impossibile controllare gli aggiornamenti. Sei online?',
'Get the Android app': 'Scarica l’app Android',
'Download the APK from opengym.ch': 'Scarica l’APK da opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Le release vengono controllate su gitlab.com. Il download è verificato con il suo checksum prima di aprire l’installer.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Le release vengono controllate su GitHub. Il download è verificato con il suo checksum prima di aprire l’installer.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'L’app web si aggiorna insieme al tuo server. L’app Android installa i suoi aggiornamenti da qui.',
'Starting download…': 'Avvio del download…',
'Downloading update…': 'Download dell’aggiornamento…',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index 55af1767d..37b4ed4ff 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': '업데이트를 확인할 수 없어요. 온라인 상태인가요?',
'Get the Android app': 'Android 앱 받기',
'Download the APK from opengym.ch': 'opengym.ch에서 APK 다운로드',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': '릴리스는 gitlab.com에서 확인합니다. 설치 프로그램이 열리기 전에 다운로드의 체크섬을 검증합니다.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': '릴리스는 GitHub에서 확인합니다. 설치 프로그램이 열리기 전에 다운로드의 체크섬을 검증합니다.',
'The web app updates together with your server. The Android app installs its own updates from here.': '웹 앱은 서버와 함께 업데이트됩니다. Android 앱은 여기서 직접 업데이트를 설치합니다.',
'Starting download…': '다운로드 시작 중…',
'Downloading update…': '업데이트 다운로드 중…',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index b7f3c8c11..7a7ece30e 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Nie udało się sprawdzić aktualizacji. Czy jesteś online?',
'Get the Android app': 'Pobierz aplikację na Androida',
'Download the APK from opengym.ch': 'Pobierz APK z opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Wydania są sprawdzane na gitlab.com. Pobrany plik jest weryfikowany sumą kontrolną przed otwarciem instalatora.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Wydania są sprawdzane na GitHub. Pobrany plik jest weryfikowany sumą kontrolną przed otwarciem instalatora.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'Aplikacja webowa aktualizuje się razem z serwerem. Aplikacja na Androida instaluje aktualizacje stąd.',
'Starting download…': 'Rozpoczynanie pobierania…',
'Downloading update…': 'Pobieranie aktualizacji…',
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index cce06481d..9a47676f3 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Não foi possível procurar atualizações. Estás online?',
'Get the Android app': 'Obter a app Android',
'Download the APK from opengym.ch': 'Descarrega o APK em opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'As versões são verificadas em gitlab.com. A transferência é confirmada pela soma de verificação antes de abrir o instalador.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'As versões são verificadas em GitHub. A transferência é confirmada pela soma de verificação antes de abrir o instalador.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'A app web atualiza-se com o teu servidor. A app Android instala as suas atualizações a partir daqui.',
'Starting download…': 'A iniciar transferência…',
'Downloading update…': 'A transferir atualização…',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 8f785a061..c4a804e8e 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -1360,7 +1360,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Не удалось проверить обновления. Вы онлайн?',
'Get the Android app': 'Скачать приложение для Android',
'Download the APK from opengym.ch': 'Скачайте APK с opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Релизы проверяются на gitlab.com. Перед запуском установщика загрузка сверяется с контрольной суммой.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Релизы проверяются на GitHub. Перед запуском установщика загрузка сверяется с контрольной суммой.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'Веб-приложение обновляется вместе с сервером. Приложение для Android устанавливает обновления отсюда.',
'Starting download…': 'Начало загрузки…',
'Downloading update…': 'Загрузка обновления…',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index cc7ab7411..ae70913e6 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -1397,7 +1397,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'ตรวจสอบอัปเดตไม่ได้ คุณออนไลน์อยู่หรือเปล่า?',
'Get the Android app': 'รับแอป Android',
'Download the APK from opengym.ch': 'ดาวน์โหลด APK จาก opengym.ch',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'ตรวจสอบรุ่นจาก gitlab.com ไฟล์ที่ดาวน์โหลดจะถูกตรวจ checksum ก่อนเปิดตัวติดตั้ง',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'ตรวจสอบรุ่นจาก GitHub ไฟล์ที่ดาวน์โหลดจะถูกตรวจ checksum ก่อนเปิดตัวติดตั้ง',
'The web app updates together with your server. The Android app installs its own updates from here.': 'เว็บแอปอัปเดตพร้อมกับเซิร์ฟเวอร์ของคุณ แอป Android ติดตั้งอัปเดตจากที่นี่',
'Starting download…': 'กำลังเริ่มดาวน์โหลด…',
'Downloading update…': 'กำลังดาวน์โหลดอัปเดต…',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 980e92abf..c7812e763 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Güncellemeler denetlenemedi. Çevrimiçi misin?',
'Get the Android app': 'Android uygulamasını al',
'Download the APK from opengym.ch': 'APK’yı opengym.ch adresinden indir',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': 'Sürümler gitlab.com üzerinde denetlenir. İndirme, yükleyici açılmadan önce sağlama toplamıyla doğrulanır.',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': 'Sürümler GitHub üzerinde denetlenir. İndirme, yükleyici açılmadan önce sağlama toplamıyla doğrulanır.',
'The web app updates together with your server. The Android app installs its own updates from here.': 'Web uygulaması sunucunla birlikte güncellenir. Android uygulaması güncellemelerini buradan kurar.',
'Starting download…': 'İndirme başlatılıyor…',
'Downloading update…': 'Güncelleme indiriliyor…',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index 96f025eb6..51371cd55 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -1234,7 +1234,7 @@ export default {
'Couldn’t check for updates. Are you online?': 'Не вдалося перевірити оновлення. Ти онлайн?',
"Get the Android app": "Отримати застосунок для Android",
"Download the APK from opengym.ch": "Завантаж APK з opengym.ch",
- "Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.": "Релізи перевіряються на gitlab.com. Перед відкриттям встановлювача завантаження звіряється з контрольною сумою.",
+ "Releases are checked on GitHub. The download is verified against its checksum before the installer opens.": "Релізи перевіряються на GitHub. Перед відкриттям встановлювача завантаження звіряється з контрольною сумою.",
"The web app updates together with your server. The Android app installs its own updates from here.": "Веб-застосунок оновлюється разом із сервером. Застосунок для Android встановлює свої оновлення звідси.",
"Starting download…": "Починаю завантаження…",
"Downloading update…": "Завантаження оновлення…",
diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.js
index 3da2eda33..e56ce48fe 100644
--- a/frontend/src/locales/zh-TW.js
+++ b/frontend/src/locales/zh-TW.js
@@ -1377,7 +1377,7 @@ export default {
'Couldn’t check for updates. Are you online?': '無法檢查更新。你有連上網路嗎?',
'Get the Android app': '下載 Android App',
'Download the APK from opengym.ch': '從 opengym.ch 下載 APK 檔',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': '發行版本由 gitlab.com 驗證。安裝前會主動核對雜湊檢查碼以保證安全。',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': '發行版本由 GitHub 驗證。安裝前會主動核對雜湊檢查碼以保證安全。',
'The web app updates together with your server. The Android app installs its own updates from here.': '網頁版將隨伺服器自動更新。Android App 則可直接在此安裝專屬更新。',
'Starting download…': '開始下載…',
'Downloading update…': '正在下載更新檔案…',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 16c13901f..27b039eb5 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -1389,7 +1389,7 @@ export default {
'Couldn’t check for updates. Are you online?': '无法检查更新。你在线吗?',
'Get the Android app': '获取 Android 应用',
'Download the APK from opengym.ch': '从 opengym.ch 下载 APK',
- 'Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.': '版本在 gitlab.com 上检查。安装程序打开前会校验下载文件的校验和。',
+ 'Releases are checked on GitHub. The download is verified against its checksum before the installer opens.': '版本在 GitHub 上检查。安装程序打开前会校验下载文件的校验和。',
'The web app updates together with your server. The Android app installs its own updates from here.': '网页应用随服务器一起更新。Android 应用在这里自行安装更新。',
'Starting download…': '正在开始下载…',
'Downloading update…': '正在下载更新…',
diff --git a/frontend/src/views/Settings.jsx b/frontend/src/views/Settings.jsx
index 2ad4c6e58..9a651c58f 100644
--- a/frontend/src/views/Settings.jsx
+++ b/frontend/src/views/Settings.jsx
@@ -31,7 +31,7 @@ import { getMediaStatus, subscribeMediaStatus, pendingRefCount } from '../lib/me
import { limitsFrom, fmtMB, MB } from '../lib/media-limits.js'
import { setRestAccent } from '../lib/rest-alert.js'
import { CUSTOM, accentKey, adjustedIn, applyAccent, cleanHex, inkOn, isGrey } from '../lib/accent.js'
-import { checkForUpdate, downloadAndInstall } from '../lib/update.js'
+import { checkForUpdate, downloadAndInstall, fetchChecksum, RELEASES_PAGE } from '../lib/update.js'
import { forgetCoach } from '../lib/coach-api.js'
import { REST_MAX, REST_PAUSE_MIN, REST_PAUSE_MAX, fmtRest, fmtDuration } from '../lib/duration.js'
import { starterPlanSheet, confirmSheet, importFromApp, importFromHevy, equipmentProfileSheet, plateInventorySheet, dumbbellInventorySheet, menuSheet } from '../sheets.jsx'
@@ -159,7 +159,7 @@ export default function Settings({ page = null, find = null, via = null }) {
// The in-app updater installs an .apk, so it only applies to the native Android build.
// On iOS and the web this check is skipped and the update row never appears. isAndroid()
// already answers false off the mobile build; the MOBILE check on top keeps the web bundle
- // from even asking (and from calling gitlab.com on every Settings visit). Only the pages
+ // from even asking (and from calling GitHub on every Settings visit). Only the pages
// that show it ask: the root (for nothing but `android`) skips the release check.
if (!MOBILE) return
isAndroid().then(ok => { setAndroid(ok); if (ok && page === 'about') checkForUpdate().then(setUpdateInfo).catch(() => {}) })
@@ -198,7 +198,7 @@ export default function Settings({ page = null, find = null, via = null }) {
}, [find])
// The same check, on demand: the automatic one is silent when it finds nothing or cannot
- // reach gitlab.com, and a person who taps "Check for updates" deserves an answer either way.
+ // reach GitHub, and a person who taps "Check for updates" deserves an answer either way.
const checkNow = async () => {
if (checking) return
setChecking(true)
@@ -233,12 +233,7 @@ export default function Settings({ page = null, find = null, via = null }) {
// The release always publishes the checksum next to the APK. Without it the file is
// not installed — a sideloaded binary is exactly the thing that should be verified.
let expectedHash = null
- if (updateInfo.hashUrl) {
- try {
- const hashRes = await fetch(updateInfo.hashUrl)
- if (hashRes.ok) expectedHash = (await hashRes.text()).split(/\s/)[0]
- } catch (e) { /* reported below */ }
- }
+ try { expectedHash = await fetchChecksum(updateInfo.hashUrl) } catch (e) { /* reported below */ }
if (!/^[0-9a-f]{64}$/i.test(expectedHash || '')) throw new Error(t('Checksum not available, so not installing'))
await downloadAndInstall(updateInfo.apkUrl, expectedHash, (received, total) => {
if (setProgress) setProgress(received, total)
@@ -252,7 +247,7 @@ export default function Settings({ page = null, find = null, via = null }) {
})
} else {
// Update available but no APK asset — open the releases page
- window.open('https://gitlab.com/DuarteSantos8/opengym/-/releases', '_blank', 'noopener')
+ window.open(RELEASES_PAGE, '_blank', 'noopener')
}
}
@@ -813,7 +808,7 @@ export default function Settings({ page = null, find = null, via = null }) {
{/* Updates. On Android the row is always there: it checks on demand and installs when a
release is newer (checksum verified, see onUpdateRowClick). On the web the app updates
with its server, so the row points at the APK for the phone instead. iOS has no APK. */}
- <Section footer={MOBILE ? (android ? t('Releases are checked on gitlab.com. The download is verified against its checksum before the installer opens.') : null) : t('The web app updates together with your server. The Android app installs its own updates from here.')}>
+ <Section footer={MOBILE ? (android ? t('Releases are checked on GitHub. The download is verified against its checksum before the installer opens.') : null) : t('The web app updates together with your server. The Android app installs its own updates from here.')}>
<Row icon="info" iconTint="var(--grey)" title={t('Version')} value={'v' + __APP_VERSION__} />
{MOBILE
? android && <Row icon="download" iconTint="var(--green)"