-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d5c48c
commit e29c086
Showing
6 changed files
with
99 additions
and
80 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
appName = "adelaide-zephyrine-charllote" | ||
install_dependencies_linux() { | ||
# Detect package manager | ||
if command -v apt-get &> /dev/null; then | ||
# Install required packages using apt-get | ||
sudo apt-get update | ||
sudo apt-get install -y git | ||
elif command -v dnf &> /dev/null; then | ||
# Install required packages using dnf (Fedora) | ||
sudo dnf install -y git | ||
elif command -v yum &> /dev/null; then | ||
# Install required packages using yum (CentOS) | ||
sudo yum install -y git | ||
elif command -v zypper &> /dev/null; then | ||
# Install required packages using zypper (openSUSE) | ||
sudo zypper install -y git | ||
elif command -v swupd &> /dev/null; then | ||
sudo swupd bundle-add git | ||
else | ||
echo "Unsupported package manager or unable to install dependencies. Exiting." | ||
exit 1 | ||
fi | ||
|
||
} | ||
|
||
install_dependencies_linux | ||
|
||
# Check if run.sh script exists, if not, clone the repository | ||
if [ ! -f "\$HOME/adelaide-zephyrine-charlotte-assistant/launchcontrol/run.sh" ]; then | ||
echo "Cloning repository..." | ||
git clone --depth=1 https://github.com/albertstarfield/alpaca-electron-zephyrine "\$HOME/adelaide-zephyrine-charlotte-assistant" | ||
fi | ||
|
||
# Launch terminal and execute run.sh script | ||
echo "Launching terminal..." | ||
bash $HOME/adelaide-zephyrine-charlotte-assistant/launchcontrol/run.sh | ||
echo "Copying to /usr/bin" | ||
content="$(cat ${0})" | ||
cat "${content}" > /usr/bin/${appName} | ||
chmod +x /usr/bin/${appName} | ||
|
||
echo "Your program is now installed you can execute it again on the shell" | ||
echo "$ ${appName}" |
10 changes: 10 additions & 0 deletions
10
builder-tool/LinuxSpecificInstaller/linuxlauncherbuilder.sh
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,10 @@ | ||
#!/bin/bash | ||
|
||
# Check if the necessary directories exist | ||
if [ ! -d "usr" ] || [ ! -d "launchcontrol" ]; then | ||
echo "Error: Make sure you are on the root directory of the project and you can launch like bash ./builder-tool/macOSdarwinBundle/maclauncherbuilder.sh" | ||
exit 1 | ||
fi | ||
|
||
echo "Bruh Linux is just as easy as launching it through the terminal and all is done! :D" | ||
cp ./builder-tool/LinuxSpecificInstaller/exec_L0 ./builder-tool/autoEasySetup/adelaide-zephyrine-charlotte |
24 changes: 0 additions & 24 deletions
24
builder-tool/autoEasySetup/Adelaide Zephyrine Charlotte.app/Contents/Info.plist
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
...utoEasySetup/Adelaide Zephyrine Charlotte.app/Contents/MacOS/Adelaide Zephyrine Charlotte
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
#!/bin/bash | ||
appName = "adelaide-zephyrine-charllote" | ||
install_dependencies_linux() { | ||
# Detect package manager | ||
if command -v apt-get &> /dev/null; then | ||
# Install required packages using apt-get | ||
sudo apt-get update | ||
sudo apt-get install -y git | ||
elif command -v dnf &> /dev/null; then | ||
# Install required packages using dnf (Fedora) | ||
sudo dnf install -y git | ||
elif command -v yum &> /dev/null; then | ||
# Install required packages using yum (CentOS) | ||
sudo yum install -y git | ||
elif command -v zypper &> /dev/null; then | ||
# Install required packages using zypper (openSUSE) | ||
sudo zypper install -y git | ||
elif command -v swupd &> /dev/null; then | ||
sudo swupd bundle-add git | ||
else | ||
echo "Unsupported package manager or unable to install dependencies. Exiting." | ||
exit 1 | ||
fi | ||
|
||
} | ||
|
||
install_dependencies_linux | ||
|
||
# Check if run.sh script exists, if not, clone the repository | ||
if [ ! -f "\$HOME/adelaide-zephyrine-charlotte-assistant/launchcontrol/run.sh" ]; then | ||
echo "Cloning repository..." | ||
git clone --depth=1 https://github.com/albertstarfield/alpaca-electron-zephyrine "\$HOME/adelaide-zephyrine-charlotte-assistant" | ||
fi | ||
|
||
# Launch terminal and execute run.sh script | ||
echo "Launching terminal..." | ||
bash $HOME/adelaide-zephyrine-charlotte-assistant/launchcontrol/run.sh | ||
echo "Copying to /usr/bin" | ||
content="$(cat ${0})" | ||
cat "${content}" > /usr/bin/${appName} | ||
chmod +x /usr/bin/${appName} | ||
|
||
echo "Your program is now installed you can execute it again on the shell" | ||
echo "$ ${appName}" |
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