Skip to content

Commit d2d8708

Browse files
author
Oliver Großkloß
authored
improved installation process, folders, cleanup and spelling (#158)
* Added installWSAGA.sh for guided installation Download installWSAGA.sh, run and follow instructions * Update installWSAGA.sh file extension to .msixbundle * improved installation process, folders, cleanup and spelling
1 parent 66026f8 commit d2d8708

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

installWSAGA.sh

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ LINK='\033[1;34m' #blue
22
YELLOW='\033[0;33m'
33
NC='\033[0m' # No Color
44
echo "updating..."
5-
sudo apt update
6-
sudo apt install unzip lzip git
5+
sudo apt-get update -qq
6+
sudo apt install unzip lzip git -qq
77

8-
while ! find MicrosoftCorporationII.WindowsSubsystemForAndroid*.msixbundle 1> /dev/null 2>&1
8+
while ! find MicrosoftCorporationII.WindowsSubsystemForAndroid*.Msixbundle 1> /dev/null 2>&1
99
do
10-
echo -e "\n\msixbundle not found - download from: ${LINK}https://store.rg-adguard.net/${NC} (Ctrl+Click)\nProductId: 9P3395VX91NR, Ring: SLOW\n\nPress enter once downloaded to current folder" ; read -p "($PWD)"
10+
echo -e "\n\Msixbundle not found - download from: ${LINK}https://store.rg-adguard.net/${NC} (Ctrl+Click)\nProductId: 9P3395VX91NR, Ring: SLOW\n\nPress enter once ${YELLOW}downloaded to current folder${NC}:" ; read -p "($PWD)"
1111
done
12-
echo msixbundle found!
12+
echo Msixbundle found!
1313

14-
while ! find open_gapps*pico*.zip 1> /dev/null 2>&1
14+
while ! find open_gapps*.zip 1> /dev/null 2>&1
1515
do
16-
echo -e "\n\nGApps not found - download from: ${LINK}https://opengapps.org/${NC} (Ctrl+Click)\nPlatform: x86_64 if Windows architecture is x64, otherwise choose ARM64\nAndroid: 11 and Variant: Pico on\n\nPress enter once downloaded to current folder" ; read -p "($PWD)"
16+
echo -e "\n\nGApps not found - download from: ${LINK}https://opengapps.org/${NC} (Ctrl+Click)\nPlatform: x86_64 if Windows architecture is x64, otherwise choose ARM64\nAndroid: 11 and Variant: Pico (or another)\n\nPress enter once ${YELLOW}downloaded to current folder${NC}" ; read -p "($PWD)"
1717
done
1818
echo GApps found!
1919

@@ -34,7 +34,7 @@ while true; do
3434
rm WSAGAScript/#MSIX/ARM64.msix;
3535
break;;
3636
[Xx]* )
37-
echo "extracting x64 verison, please wait...";
37+
echo "extracting x64 version, please wait...";
3838
unzip -p MicrosoftCorporationII.WindowsSubsystemForAndroid* *x64_Release-Nightly.msix > WSAGAScript/#MSIX/x64.msix
3939
unzip WSAGAScript/#MSIX/x64.msix -d WSAGAScript/#MSIX/
4040
rm WSAGAScript/#MSIX/x64.msix;
@@ -60,14 +60,21 @@ sudo ./extend_and_mount_images.sh
6060
sudo ./apply.sh
6161
sudo ./unmount_images.sh
6262

63-
echo "moving edited images to intall location"
63+
echo "moving edited images to install location"
6464
mv ./#IMAGES/*.img ./#MSIX/
6565

66+
67+
echo "moving install folder to C:"
68+
mkdir /mnt/c/WSA
69+
mv ./#MSIX/* /mnt/c/WSA
70+
71+
6672
echo -e "${YELLOW}Nearly done:${NC}"
6773
echo "Enable developer mode in windows settings."
74+
echo "(Settings -> Privacy&security -> For developers)"
6875
echo "Uninstall any other installed versions of WSA"
6976
echo "Open Windows PowerShell (not PowerShell) as admin and run:"
70-
echo -e "${LINK}Add-AppxPackage -Register $(wslpath -w \#MSIX)\\AppxManifest.xml${NC}\n"
77+
echo -e "${LINK}Add-AppxPackage -Register C:\\WSA\\AppxManifest.xml${NC}\n"
7178
read -n 1 -s -r -p "Press any key to continue"
7279
echo
7380
echo
@@ -82,5 +89,11 @@ echo
8289
echo
8390

8491
echo "Everyting should be installed now"
85-
echo "Remaining Folder/Files: WSAGAScript, MicrosoftCorporation...msixbundle, open_gapps...zip, intallWSAGA,sh"
86-
echo "delete them manually or keep if something breaks"
92+
echo "Remaining Folder/Files: WSAGAScript, MicrosoftCorporation...Msixbundle, open_gapps...zip, intallWSAGA.sh"
93+
read -p "Press Enter to delete or press CTRL+C to stop here"
94+
cd ..
95+
rm -rf WSAGAScript
96+
rm MicrosoftCorporationII.WindowsSubsystemForAndroid*.Msixbundle
97+
rm open_gapps*.zip
98+
rm installWSAGA.sh
99+
echo "Cleanup comlete"

0 commit comments

Comments
 (0)