bump version
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"mainBinaryName": "RisuAI",
|
"mainBinaryName": "RisuAI",
|
||||||
"version": "141.0.0",
|
"version": "141.1.0",
|
||||||
"identifier": "co.aiclient.risu",
|
"identifier": "co.aiclient.risu",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"updater": {
|
"updater": {
|
||||||
|
|||||||
@@ -1643,7 +1643,7 @@ export async function downloadRisuHub(id:string, arg:{
|
|||||||
msg: "Downloading..."
|
msg: "Downloading..."
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const res = await fetch("https://realm.risuai.net/api/v1/download/png-v3/" + id + '?cors=true', {
|
const res = await fetch("https://realm.risuai.net/api/v1/download/dynamic/" + id + '?cors=true', {
|
||||||
headers: {
|
headers: {
|
||||||
"x-risu-api-version": "4"
|
"x-risu-api-version": "4"
|
||||||
}
|
}
|
||||||
@@ -1653,13 +1653,23 @@ export async function downloadRisuHub(id:string, arg:{
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if(res.headers.get('content-type') === 'image/png'){
|
if(res.headers.get('content-type') === 'image/png' || res.headers.get('content-type') === 'application/zip'){
|
||||||
let db = getDatabase()
|
let db = getDatabase()
|
||||||
await importCharacterProcess({
|
if(res.headers.get('content-type') === 'application/zip'){
|
||||||
name: 'realm.png',
|
console.log('zip')
|
||||||
data: res.body,
|
await importCharacterProcess({
|
||||||
lightningRealmImport: db.lightningRealmImport
|
name: 'realm.charx',
|
||||||
})
|
data: new Uint8Array(await res.arrayBuffer()),
|
||||||
|
lightningRealmImport: db.lightningRealmImport,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
await importCharacterProcess({
|
||||||
|
name: 'realm.png',
|
||||||
|
data: res.body,
|
||||||
|
lightningRealmImport: db.lightningRealmImport,
|
||||||
|
})
|
||||||
|
}
|
||||||
checkCharOrder()
|
checkCharOrder()
|
||||||
db = getDatabase()
|
db = getDatabase()
|
||||||
if(db.characters[db.characters.length-1] && (db.goCharacterOnImport || arg.forceRedirect)){
|
if(db.characters[db.characters.length-1] && (db.goCharacterOnImport || arg.forceRedirect)){
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme';
|
|||||||
import type { PromptItem, PromptSettings } from '../process/prompt';
|
import type { PromptItem, PromptSettings } from '../process/prompt';
|
||||||
import type { OobaChatCompletionRequestParams } from '../model/ooba';
|
import type { OobaChatCompletionRequestParams } from '../model/ooba';
|
||||||
|
|
||||||
export let appVer = "141.0.0"
|
export let appVer = "141.1.0"
|
||||||
export let webAppSubVer = ''
|
export let webAppSubVer = ''
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"141.0.0"}
|
{"version":"141.1.0"}
|
||||||
Reference in New Issue
Block a user