Load playlet lib as squashfs (#357)

* Load playlet lib as squashfs

* typo
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2024-04-04 11:10:23 -04:00
1 parent b534ea68db
commit 1cbb52fad4
6 files changed
+28 -14

No files matched your search

+6
View File
@@ -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'
})