Skip to content

Commit ca1aad6

Browse files
committed
chore: change update link
1 parent fa79043 commit ca1aad6

10 files changed

Lines changed: 22 additions & 19 deletions

File tree

src/main/menu/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createMenu } from '../components/menu'
22
import type { MenuItemConstructorOptions } from 'electron'
33
import { shell, dialog, BrowserWindow } from 'electron'
4-
import { version, repository } from '../../../package.json'
4+
import { version } from '../../../package.json'
55
import os from 'os'
66
import { checkForUpdate } from '../services/update-check'
77
import { store } from '../store'
@@ -66,7 +66,7 @@ MenuItemConstructorOptions
6666
)
6767

6868
if (buttonId === 0) {
69-
shell.openExternal(`${repository}/releases`)
69+
shell.openExternal('https://masscode.io/download/latest-release.html')
7070
}
7171
} else {
7272
dialog.showMessageBoxSync(BrowserWindow.getFocusedWindow()!, {

src/main/services/i18n/locales/en/menu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "Check for Updates....",
77
"message": "Version {{newVersion}} is now available for download.\nYour version is {{oldVersion}}.",
8-
"button": ["Go to Github", "OK"],
8+
"button": ["Go to Download", "OK"],
99
"noUpdate": "There are currently no updates available."
1010
},
1111
"quit": "Quit massCode",
@@ -81,4 +81,4 @@
8181
"back": "Back",
8282
"forward": "Forward"
8383
}
84-
}
84+
}

src/main/services/i18n/locales/es_ES/menu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "Buscar actualizaciones....",
77
"message": "La versión {{newVersion}} está disponible para descargar.\nTu versión actual es {{oldVersion}}.",
8-
"button": ["Ir a Github", "OK"],
8+
"button": ["Ir a Descarga", "OK"],
99
"noUpdate": "No hay actualizaciones disponibles."
1010
},
1111
"quit": "Salir de massCode",

src/main/services/i18n/locales/ja_JP/menu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "アップデートがあるか確認",
77
"message": "バージョン {{newVersion}} がダウンロード可能です。\n現在使用しているバージョンは {{oldVersion}} です。",
8-
"button": ["Githubを開く", "OK"],
8+
"button": ["ダウンロードに進む", "OK"],
99
"noUpdate": "アップデートはありません。"
1010
},
1111
"quit": "massCodeを終了",
@@ -81,4 +81,4 @@
8181
"back": "戻る",
8282
"forward": "進む"
8383
}
84-
}
84+
}

src/main/services/i18n/locales/pt_BR/menu.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "Verificar atualizações....",
77
"message": "Versão {{newVersion}} já está disponível para download.\nSua versão é {{oldVersion}}.",
8-
"button": ["Ir até o Github", "OK"],
8+
"button": ["Ir até o Download", "OK"],
99
"noUpdate": "No momento, não há atualizações disponíveis."
1010
},
1111
"quit": "Sair do massCode",
@@ -34,7 +34,7 @@
3434
"twitter": "Twitter",
3535
"devTools": "Ferramentas do desenvolvedor",
3636
"links": {
37-
"snippets": "Coleção de snippet"
37+
"snippets": "Coleção de snippet"
3838
}
3939
},
4040
"file": {
@@ -64,7 +64,7 @@
6464
"label": "Editor",
6565
"copy": "Copiar para área de transferencia",
6666
"format": "Formato",
67-
"previewCode": "Pré-visualizar código",
67+
"previewCode": "Pré-visualizar código",
6868
"previewScreenshot": "Pré-visualizar captura de tela",
6969
"previewMarkdown": "Pré-visualizar marcador",
7070
"fontSizeIncrease": "Aumentar tamanho da fonte",
@@ -81,4 +81,4 @@
8181
"back": "Voltar",
8282
"forward": "Avançar"
8383
}
84-
}
84+
}

src/main/services/i18n/locales/ru/menu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "Проверить обновления....",
77
"message": "Версия {{newVersion}} доступна для скачивания.\nТекущая версия {{oldVersion}}.",
8-
"button": ["Перейти на GitHub", "OK"],
8+
"button": ["Перейти для загрузки", "OK"],
99
"noUpdate": "В настоящее время нет доступных обновлений."
1010
},
1111
"quit": "Выйти из massCode",

src/main/services/i18n/locales/zh_CN/menu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "检查更新…",
77
"message": "新版本 {{newVersion}} 现在已经可以下载。\n现在的版本是 {{oldVersion}} 。",
8-
"button": ["前往 GitHub", "OK"],
8+
"button": ["前往下载", "OK"],
99
"noUpdate": "当前没有可用的更新。"
1010
},
1111
"quit": "退出 massCode",
@@ -81,4 +81,4 @@
8181
"back": "后退",
8282
"forward": "前进"
8383
}
84-
}
84+
}

src/main/services/i18n/locales/zh_HK/menu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "檢查更新…",
77
"message": "新版本 {{newVersion}} 現在已經可以下載。\n現在的版本是 {{oldVersion}} 。",
8-
"button": ["前往 GitHub", "OK"],
8+
"button": ["前往下载", "OK"],
99
"noUpdate": "當前沒有可用的更新。"
1010
},
1111
"quit": "退出 massCode",
@@ -81,4 +81,4 @@
8181
"back": "回上一頁",
8282
"forward": "到下一頁"
8383
}
84-
}
84+
}

src/main/services/i18n/locales/zh_TW/menu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"update": {
66
"label": "檢查更新…",
77
"message": "新版本 {{newVersion}} 現在已經可以下載。\n現在的版本是 {{oldVersion}} 。",
8-
"button": ["前往 GitHub", "OK"],
8+
"button": ["前往下载", "OK"],
99
"noUpdate": "當前沒有可用的更新。"
1010
},
1111
"quit": "退出 massCode",
@@ -81,4 +81,4 @@
8181
"back": "回上一頁",
8282
"forward": "到下一頁"
8383
}
84-
}
84+
}

src/renderer/App.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ const setTheme = (theme: string) => {
105105
}
106106
107107
const onClickUpdate = () => {
108-
ipc.invoke('main:open-url', `${repository}/releases`)
108+
ipc.invoke(
109+
'main:open-url',
110+
'https://masscode.io/download/latest-release.html'
111+
)
109112
track('app/update')
110113
}
111114

0 commit comments

Comments
 (0)