bump version

This commit is contained in:
kwaroran
2024-12-03 21:16:50 +09:00
parent 18ea5aff4e
commit 9ac91190f9
4 changed files with 20 additions and 10 deletions

View File

@@ -29,7 +29,7 @@
},
"productName": "RisuAI",
"mainBinaryName": "RisuAI",
"version": "141.0.0",
"version": "141.1.0",
"identifier": "co.aiclient.risu",
"plugins": {
"updater": {

View File

@@ -1643,7 +1643,7 @@ export async function downloadRisuHub(id:string, arg:{
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: {
"x-risu-api-version": "4"
}
@@ -1653,13 +1653,23 @@ export async function downloadRisuHub(id:string, arg:{
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()
await importCharacterProcess({
name: 'realm.png',
data: res.body,
lightningRealmImport: db.lightningRealmImport
})
if(res.headers.get('content-type') === 'application/zip'){
console.log('zip')
await importCharacterProcess({
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()
db = getDatabase()
if(db.characters[db.characters.length-1] && (db.goCharacterOnImport || arg.forceRedirect)){

View File

@@ -12,7 +12,7 @@ import { defaultColorScheme, type ColorScheme } from '../gui/colorscheme';
import type { PromptItem, PromptSettings } from '../process/prompt';
import type { OobaChatCompletionRequestParams } from '../model/ooba';
export let appVer = "141.0.0"
export let appVer = "141.1.0"
export let webAppSubVer = ''

View File

@@ -1 +1 @@
{"version":"141.0.0"}
{"version":"141.1.0"}