File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { createMenu } from '../components/menu'
22import type { MenuItemConstructorOptions } from 'electron'
33import { shell , dialog , BrowserWindow } from 'electron'
4- import { version , repository } from '../../../package.json'
4+ import { version } from '../../../package.json'
55import os from 'os'
66import { checkForUpdate } from '../services/update-check'
77import { 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 ( ) ! , {
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " Check for Updates...." ,
77 "message" : " Version {{newVersion}} is now available for download.\n Your 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" ,
8181 "back" : " Back" ,
8282 "forward" : " Forward"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " Buscar actualizaciones...." ,
77 "message" : " La versión {{newVersion}} está disponible para descargar.\n Tu 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" ,
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " アップデートがあるか確認" ,
77 "message" : " バージョン {{newVersion}} がダウンロード可能です。\n 現在使用しているバージョンは {{oldVersion}} です。" ,
8- "button" : [" Githubを開く " , " OK" ],
8+ "button" : [" ダウンロードに進む " , " OK" ],
99 "noUpdate" : " アップデートはありません。"
1010 },
1111 "quit" : " massCodeを終了" ,
8181 "back" : " 戻る" ,
8282 "forward" : " 進む"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " Verificar atualizações...." ,
77 "message" : " Versão {{newVersion}} já está disponível para download.\n Sua 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" ,
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" : {
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" ,
8181 "back" : " Voltar" ,
8282 "forward" : " Avançar"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " Проверить обновления...." ,
77 "message" : " Версия {{newVersion}} доступна для скачивания.\n Текущая версия {{oldVersion}}." ,
8- "button" : [" Перейти на GitHub " , " OK" ],
8+ "button" : [" Перейти для загрузки " , " OK" ],
99 "noUpdate" : " В настоящее время нет доступных обновлений."
1010 },
1111 "quit" : " Выйти из massCode" ,
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " 检查更新…" ,
77 "message" : " 新版本 {{newVersion}} 现在已经可以下载。\n 现在的版本是 {{oldVersion}} 。" ,
8- "button" : [" 前往 GitHub " , " OK" ],
8+ "button" : [" 前往下载 " , " OK" ],
99 "noUpdate" : " 当前没有可用的更新。"
1010 },
1111 "quit" : " 退出 massCode" ,
8181 "back" : " 后退" ,
8282 "forward" : " 前进"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " 檢查更新…" ,
77 "message" : " 新版本 {{newVersion}} 現在已經可以下載。\n 現在的版本是 {{oldVersion}} 。" ,
8- "button" : [" 前往 GitHub " , " OK" ],
8+ "button" : [" 前往下载 " , " OK" ],
99 "noUpdate" : " 當前沒有可用的更新。"
1010 },
1111 "quit" : " 退出 massCode" ,
8181 "back" : " 回上一頁" ,
8282 "forward" : " 到下一頁"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change 55 "update" : {
66 "label" : " 檢查更新…" ,
77 "message" : " 新版本 {{newVersion}} 現在已經可以下載。\n 現在的版本是 {{oldVersion}} 。" ,
8- "button" : [" 前往 GitHub " , " OK" ],
8+ "button" : [" 前往下载 " , " OK" ],
99 "noUpdate" : " 當前沒有可用的更新。"
1010 },
1111 "quit" : " 退出 massCode" ,
8181 "back" : " 回上一頁" ,
8282 "forward" : " 到下一頁"
8383 }
84- }
84+ }
Original file line number Diff line number Diff line change @@ -105,7 +105,10 @@ const setTheme = (theme: string) => {
105105}
106106
107107const 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
You can’t perform that action at this time.
0 commit comments