-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1031 from hydralauncher/feature/game-achievements
game achievements
- Loading branch information
Showing
187 changed files
with
9,781 additions
and
2,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
const { default: axios } = require("axios"); | ||
const util = require("node:util"); | ||
const fs = require("node:fs"); | ||
const path = require("node:path"); | ||
|
||
const exec = util.promisify(require("node:child_process").exec); | ||
|
||
const fileName = { | ||
win32: "ludusavi-v0.25.0-win64.zip", | ||
linux: "ludusavi-v0.25.0-linux.zip", | ||
darwin: "ludusavi-v0.25.0-mac.zip", | ||
}; | ||
|
||
const downloadLudusavi = async () => { | ||
if (fs.existsSync("ludusavi")) { | ||
console.log("Ludusavi already exists, skipping download..."); | ||
return; | ||
} | ||
|
||
const file = fileName[process.platform]; | ||
const downloadUrl = `https://github.com/mtkennerly/ludusavi/releases/download/v0.25.0/${file}`; | ||
|
||
console.log(`Downloading ${file}...`); | ||
|
||
const response = await axios.get(downloadUrl, { responseType: "stream" }); | ||
|
||
const stream = response.data.pipe(fs.createWriteStream(file)); | ||
|
||
stream.on("finish", async () => { | ||
console.log(`Downloaded ${file}, extracting...`); | ||
|
||
const pwd = process.cwd(); | ||
|
||
const targetPath = path.join(pwd, "ludusavi"); | ||
|
||
await exec(`npx extract-zip ${file} ${targetPath}`); | ||
|
||
if (process.platform !== "win32") { | ||
fs.chmodSync(path.join(targetPath, "ludusavi"), 0o755); | ||
} | ||
|
||
console.log("Extracted. Renaming folder..."); | ||
|
||
console.log(`Extracted ${file}, removing compressed downloaded file...`); | ||
fs.rmSync(file); | ||
}); | ||
}; | ||
|
||
downloadLudusavi(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
libtorrent | ||
cx_Freeze | ||
cx_Logging; sys_platform == 'win32' | ||
lief; sys_platform == 'win32' | ||
pywin32; sys_platform == 'win32' | ||
psutil | ||
Pillow |
Binary file not shown.
Oops, something went wrong.