WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.59k stars 3.53k forks source link

Procedure to add files to WSA #214

Closed Ircama closed 2 years ago

abaynp commented 2 years ago

can we only symlink busybox's applets that not already linked to toybox,bzip,etc?

Ircama commented 2 years ago

can we only symlink busybox's applets that not already linked to toybox,bzip,etc?

Are you referring to this? Could you better elaborate your request?

abaynp commented 2 years ago

Haa, yes! I'm sorry, not a coder, don't know how to use github.

I purpose this

for i in `./busybox --list`; do sudo ln -sf busybox "$i"; done
for i in `ls /mnt/system/system/bin`; do rm /mnt/system/system/xbin/"$i"; done

Since busybox file won't move anywhere, do symlink instead of hardlink, for efficiency (is it work? I don't know) Delete applets that already installed in /system/bin, to avoid conflict (what conflict? again, I don't know)

I think we don't have to do this. I check with printenv system/xbin is already there even tho there is no xbin in original build.

please tell me your opinion

Ircama commented 2 years ago

Appropriate usage of PATH not only allows defining the precedence (PATH elements are checked left to right), but also it manually enables the definition of the additional busybox, so that it is disabled by default. Anyway busybox is just a trivial example, we can remove it and simply replace it with three ellipsis indicating any program to add.

abaynp commented 2 years ago

Oh I'm sorry. I'm not aware pull request to readme file, not the apply file. My apologies.