diff --git a/install.sh b/install.sh index c0210af..28ebd1d 100644 --- a/install.sh +++ b/install.sh @@ -19,12 +19,16 @@ if [[ "$action" == "1" ]]; then if [[ "$choice" =~ ^[Yy]$ ]]; then echo "Installing Arch-Store stable..." + sudo pacman -Rns arch-store-git + sudo pacman -Rns arch-store-dev-git wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD makepkg -si rm PKGBUILD echo "FINISHED!" else - echo "Installing Arch-Store from main branch..." + echo "Installing Arch-Store from main branch (beta)..." + sudo pacman -Rns arch-store-dev-git + sudo pacman -Rns arch-store wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD-git mv PKGBUILD-git PKGBUILD makepkg -si @@ -45,15 +49,24 @@ elif [[ "$action" == "2" ]]; then echo "Uninstalling Arch-Store..." sudo pacman -Rns arch-store sudo pacman -Rns arch-store-git + sudo pacman -Rns arch-store-dev-git echo "FINISHED!" elif [[ "$action" == "5" ]]; then + mkdir arch-store-install + cd arch-store-install + PYTHON_PATH=$(which python3) + echo "Installing Arch-Store DEV branch..." + sudo pacman -Rns arch-store + sudo pacman -Rns arch-store-git wget https://raw.githubusercontent.com/samuobe/Arch-Store/main/PKGBUILD/PKGBUILD-dev mv PKGBUILD-dev PKGBUILD makepkg -si rm PKGBUILD + sudo touch /usr/share/arch-store/script echo "FINISHED!" + cd .. rm -rf arch-store-install fi diff --git a/main.py b/main.py index ece033c..3589fee 100644 --- a/main.py +++ b/main.py @@ -21,7 +21,7 @@ from manage_installed_method import show_window as show_installed_method #fast access variables -arch_store_version = "beta_SETTINGS-UPDATE_1.0.0" +arch_store_version = "dev_DEV-TEST_1.0.0" #Base variables install_pacman_packages=[] diff --git a/settings.py b/settings.py index ae28e9e..fc1a319 100644 --- a/settings.py +++ b/settings.py @@ -40,10 +40,10 @@ def open_setting(language, working_dir, avaible_languages, version): global pacman_status, aur_status, flatpak_status, aur_method, new_language, app_image_dir load_config_data(working_dir, avaible_languages, language) - if not os.path.isfile(working_dir+"/script"): - script_installation_status = False - else: + if os.path.isfile("/usr/share/arch-store/script"): script_installation_status = True + else: + script_installation_status = False #Edit repo def confirm_changes(): global pacman_status, aur_status, flatpak_status, aur_method, new_language, app_image_dir, old_language