Load playlet lib as squashfs (#357)
* Load playlet lib as squashfs * typo
This commit is contained in:
1 parent
b534ea68db
commit
1cbb52fad4
6 files changed
+28
-14
No files matched your search
@@ -142,6 +142,9 @@ export class PlayletApi {
|
||||
static async setPlayletLibVersion(tag) {
|
||||
if (tag !== "") {
|
||||
const urls = [{
|
||||
link: `https://github.com/iBicha/playlet/releases/download/${tag}/playlet-lib.squashfs.pkg`,
|
||||
type: 'custom'
|
||||
}, {
|
||||
link: `https://github.com/iBicha/playlet/releases/download/${tag}/playlet-lib.zip`,
|
||||
type: 'custom'
|
||||
}]
|
||||
@@ -149,6 +152,9 @@ export class PlayletApi {
|
||||
// To avoid the "not found" error, we fallback to the default "latest" release.
|
||||
if (tag === "canary") {
|
||||
urls.push({
|
||||
link: `https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.squashfs.pkg`,
|
||||
type: 'custom'
|
||||
}, {
|
||||
link: `https://github.com/iBicha/playlet/releases/latest/download/playlet-lib.zip`,
|
||||
type: 'custom'
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user