mirror of
https://github.com/yuzu-emu/citra-qt-installer.git
synced 2024-12-22 18:35:32 +00:00
deno: add task definitions
This commit is contained in:
parent
f639faba8e
commit
54f6785dbd
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -61,3 +61,4 @@ typings/
|
||||||
|
|
||||||
# bundled JS
|
# bundled JS
|
||||||
*.bundle.js
|
*.bundle.js
|
||||||
|
*.min.js
|
||||||
|
|
5
deno.json
Normal file
5
deno.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"tasks": {
|
||||||
|
"bundle": "deno bundle server.js -- server.bundle.js"
|
||||||
|
}
|
||||||
|
}
|
|
@ -57,7 +57,6 @@ function getTopResultFor(jsonData, platform) {
|
||||||
return { notFound: true };
|
return { notFound: true };
|
||||||
}
|
}
|
||||||
|
|
||||||
const zipBin = await check7z();
|
|
||||||
// The Qt Installer Framework is a pain to build or download.
|
// The Qt Installer Framework is a pain to build or download.
|
||||||
// Because all we need are a few 7-zipped + xml files, we might as well generate them for ourselves.
|
// Because all we need are a few 7-zipped + xml files, we might as well generate them for ourselves.
|
||||||
const targets = [
|
const targets = [
|
||||||
|
@ -100,6 +99,7 @@ const targets = [
|
||||||
];
|
];
|
||||||
|
|
||||||
async function execute() {
|
async function execute() {
|
||||||
|
const zipBin = await check7z();
|
||||||
// Clean up any temporary directories.
|
// Clean up any temporary directories.
|
||||||
try {
|
try {
|
||||||
await Deno.remove(tempDir, { recursive: true });
|
await Deno.remove(tempDir, { recursive: true });
|
||||||
|
@ -236,6 +236,8 @@ async function execute() {
|
||||||
"No Citra binary release updates are available for the Updates.xml -- nothing to do."
|
"No Citra binary release updates are available for the Updates.xml -- nothing to do."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await Deno.remove(tempDir, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
execute().catch((err) => {
|
execute().catch((err) => {
|
||||||
|
|
Loading…
Reference in a new issue