-
Notifications
You must be signed in to change notification settings - Fork 8
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 #144 from Andy-K-Sparklight/main
release(*): bump core 50 as new av sunset
- Loading branch information
Showing
43 changed files
with
671 additions
and
678 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
// Inject alicorn.sh for GNU/Linux | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const fs = require("fs"); | ||
const START_SH = "#!/bin/sh\ncd `dirname $0`\n./Alicorn"; | ||
fs.writeFile( | ||
"./out/Alicorn-linux-x64/alicorn.sh", | ||
START_SH, | ||
{ mode: "0777" }, | ||
fs.copyFile( | ||
"./resources/build/install.sh", | ||
"./out/Alicorn-linux-x64/install.sh", | ||
() => { | ||
console.log("Shell launcher emitted."); | ||
fs.chmod("./out/Alicorn-linux-x64/install.sh", 0o755, () => { | ||
console.log("Shell installer emitted."); | ||
}); | ||
} | ||
); | ||
fs.copyFile( | ||
"./resources/build/icon.png", | ||
"./out/Alicorn-linux-x64/Alicorn.png", | ||
() => { | ||
console.log("Icon emitted."); | ||
} | ||
); |
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,15 @@ | ||
#!/bin/sh | ||
echo "Installing Alicorn, just a second..." | ||
USERNAME=`whoami` | ||
DESTFILE="/home/$USERNAME/.local/share/applications/alicorn.desktop" | ||
rm -f $DESTFILE | ||
cd `dirname $0` | ||
MYDIR=`pwd` | ||
chmod +x "Alicorn" | ||
for LN in '[Desktop Entry]' 'Type=Application' 'Version=1.0' 'Name=Alicorn' 'Comment=A cute custom Minecraft launcher for everypony!' "Path=$MYDIR" "Exec=$MYDIR/Alicorn" "Icon=$MYDIR/Alicorn.png" 'Terminal=false' | ||
do | ||
echo $LN >> $DESTFILE | ||
done | ||
|
||
echo "Installation complete, starting for you..." | ||
./Alicorn |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.