-
Notifications
You must be signed in to change notification settings - Fork 31
Bugs in APKX #6
Comments
The temp.bat:
and the content of the folder:
|
Just noticed now, that a windows error message (i.e. NOT on the commandprompt window) came up: |
Saying about this: Actually maybe there's a line generated when listing folder contents to the Also, thanks for letting me know that |
I had posted the temp.bat file. I do not see anything unneccessary. I think it would be useful if you tested this on a "blank" virtual machine once.
I was refering to fart.exe, not adb.exe Best regards, |
I think to make the installation process as I expected, I'll move the ADB files to another Or, should I put these files in
Thanks for the suggestion. This will let me to experience how do the installation process go for a new user. Will be doing it soon. |
Hello, Put in fact, I think that is not neccessary. I think that you will get the same error as I did and you can fix those with the suggestions I made in my first post. I would NOT mess with putting files to System32. |
I think I know what happened - which applies at both InstallAPK and InstallXAPK - I forgot to add Will have a fix soon. |
Also, about this:
|
Try this one before I make it released. You can check if it's running without ADB and 7-zip at PATH - most of the @echo off
echo Windows Subsystem for Android XAPK app installer
echo This script uses adb and simplifies installation for XAPK bundles on WSA.
echo Before you start, please ensure that you toggled "Developer Mode" on in WSA settings.
echo Please note that OBB files are not supported by this script at the moment. After installation, the script will exit by itself.
echo Done? then press any key to continue the process.
:: Pre-installation - restarting WSA
WsaClient.exe /restart
:: The following line hides "Press any key to continue" and didn't show text for the process.
pause >nul
:: The line below goes to the APK Installation process listed below
GOTO apk_install
:apk_install
set /P apk=Drag and drop your XAPK bundle here / type in the path here then press "Enter":
:: Extract XAPK to temp dir and create batch file
cd ..
echo Extracting APK file...
mkdir temp
..\main\7z e -aoa "%apk%" -otemp
:: Delete icon and manifest, then create batch
cd temp
del icon.png
del manifest.json
cd temp
dir /b > temp.bat
:: Create batch (2) - Replace stuffs
fart "temp.bat" "com." "..\main\adb install "com."
fart "temp.bat" "config" "..\main\adb install config"
fart -C "temp.bat" temp.bat " "
:: Run final generated ADB script
cd temp
..\main\adb connect localhost:58526 >nul
echo Installing...
temp.bat
echo Installation complete!
pause
exit
:::: (Reserved for future uses)
:: Complete prompt
:: echo Installation complete!
:: set /p var=Do you want to install other XAPK files? [Yes / (No)]:
:: if %var%== Yes GOTO apk_install
:: if %var%== yes GOTO apk_install
:: if not %var%== No exit
:::: (Don't know why this part can't run, if you know why then submit a pull request with the modified script) Also, need to ask something, how can I run the rest of the script after I run a batch file? Something like: Run script > Run batch file inside script THEN do not exit, run the rest of the script. |
Hello, it does not work yet :-(
you change to temp then you do something (here you miss the path to fart) and then you change to temp again. So: %~dp0 is the path of this batch script (so main) That should work. Have you really tried this on a fresh install? Regarding your last question For your last question:
And then, remove the exit in the script that you called. Best regards, |
Sorry for (super) late reply, but currently working on WSAtools now. Kinda busy recently. The "Fresh install" that you mean - well, I assumed that it's the same with deleting 7z.exe and adb.exe from the directory that I set at PATH. '%~dp0' is not recognized as an internal or external command,
operable program or batch file. Weird where Already noticed about the FART error in the InstallXAPK script. |
You can test it by downloading this, unzipping it then copy to the "main" dir: Here's some more visible changes: G:\git-working\wsatools\releases\main\temp\..\adb install-multiple com.reddit.frontpage.apk config.arm64_v8a.apk config.de.apk config.en.apk config.es.apk config.fr.apk config.it.apk config.pt.apk config.xxhdpi.apk Note that Also, need to ask: the |
Update: this update is tried on a device without ADB and FART being on PATH and it worked - Now on WSAUtilities v0.0.9. You can make a new issue if you have any problems regarding this. |
Hello,
when installing apkx, 7z may ask if it shall overwrite files. This goes to >NUL.
7z e -aoa adb.zip -otemp >nul
and
7z e -aoa "%apk%" -otemp
Furthermore fart is not in temp, but in the parent directory:
Then, after these fixes, I still get:
Any Idea?
Best regards,
Hendrik
The text was updated successfully, but these errors were encountered: