- {commonStore.platform !== 'darwin' &&
- {
- commonStore.setSettings({
- customModelsPath: data.value
- });
- }} />
- } />
- }
+ {
+ commonStore.setSettings({
+ customModelsPath: data.value
+ });
+ }} />
+ } />
{
outputPrefix,
dataParams.vocabPath).then(async () => {
if (!await FileExists(outputPrefix + '_text_document.idx')) {
- toast(t('Failed to convert data') + ' - ' + await GetPyError(), { type: 'error' });
+ if (commonStore.platform === 'windows' || commonStore.platform === 'linux')
+ toast(t('Failed to convert data') + ' - ' + await GetPyError(), { type: 'error' });
} else {
toast(t('Convert Data successfully'), { type: 'success' });
}
diff --git a/frontend/src/utils/index.tsx b/frontend/src/utils/index.tsx
index 22b7a1d..5ddc70c 100644
--- a/frontend/src/utils/index.tsx
+++ b/frontend/src/utils/index.tsx
@@ -352,7 +352,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
if (r.ok) {
r.json().then((data) => {
if (data.assets && data.assets.length > 0) {
- const asset = data.assets.find((a: any) => a.name.toLowerCase().includes(commonStore.platform.toLowerCase()));
+ const asset = data.assets.find((a: any) => a.name.toLowerCase().includes(commonStore.platform.toLowerCase().replace('darwin', 'macos')));
if (asset) {
const updateUrl = !commonStore.settings.giteeUpdatesSource ?
`https://github.com/josStorer/RWKV-Runner/releases/download/${versionTag}/${asset.name}` :