mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-23 03:39:16 +01:00
parent
83557639ba
commit
0d47927f3e
41
.github/workflows/magisk.yml
vendored
41
.github/workflows/magisk.yml
vendored
@ -27,7 +27,9 @@ jobs:
|
|||||||
- name: Dependencies
|
- name: Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip3 install beautifulsoup4 lxml
|
pip3 install beautifulsoup4 lxml
|
||||||
sudo apt-get update && sudo apt-get install setools lzip qemu-utils
|
sudo apt-get update && sudo apt-get install setools lzip qemu-utils wine winetricks
|
||||||
|
wget -qO- "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/archive/$GITHUB_REF.tar.gz" | sudo tar --wildcards -zxvf- -C ~ --strip-component=2 '*/wine/*'
|
||||||
|
winetricks msxml6
|
||||||
- name: Download WSA
|
- name: Download WSA
|
||||||
shell: python
|
shell: python
|
||||||
run: |
|
run: |
|
||||||
@ -64,18 +66,30 @@ jobs:
|
|||||||
zip.extract(f)
|
zip.extract(f)
|
||||||
ver_no = zip_name.split("_")
|
ver_no = zip_name.split("_")
|
||||||
ver = ver_no[1]
|
ver = ver_no[1]
|
||||||
with open(os.environ['GITHUB_ENV'], 'a') as f:
|
with open(os.environ['GITHUB_ENV'], 'a') as g:
|
||||||
f.write(f'WSA_VER={ver}\n')
|
g.write(f'WSA_VER={ver}\n')
|
||||||
rel = ver_no[3].split(".")
|
rel = ver_no[3].split(".")
|
||||||
rell = str(rel[0])
|
rell = str(rel[0])
|
||||||
with open(os.environ['GITHUB_ENV'], 'a') as f:
|
with open(os.environ['GITHUB_ENV'], 'a') as g:
|
||||||
f.write(f'WSA_REL={rell}\n')
|
g.write(f'WSA_REL={rell}\n')
|
||||||
break
|
if 'language' in f.filename.lower():
|
||||||
|
name = f.filename.split("-", 1)[1].split(".")[0]
|
||||||
|
zip.extract(f)
|
||||||
|
with zipfile.ZipFile(f.filename) as l:
|
||||||
|
for g in l.filelist:
|
||||||
|
if g.filename == 'resources.pri':
|
||||||
|
g.filename = f'{name}.pri'
|
||||||
|
l.extract(g, 'pri')
|
||||||
|
print(f"extract language pack {g.filename}")
|
||||||
|
elif g.filename == 'AppxManifest.xml':
|
||||||
|
g.filename = f'{name}.xml'
|
||||||
|
l.extract(g, 'xml')
|
||||||
|
|
||||||
with zipfile.ZipFile(zip_name) as zip:
|
with zipfile.ZipFile(zip_name) as zip:
|
||||||
if not os.path.isdir(arch):
|
if not os.path.isdir(arch):
|
||||||
print(f"unzipping from {zip_name}", flush=True)
|
print(f"unzipping from {zip_name}", flush=True)
|
||||||
zip.extractall(arch)
|
zip.extractall(arch)
|
||||||
|
|
||||||
print("done", flush=True)
|
print("done", flush=True)
|
||||||
- name: Download Magisk
|
- name: Download Magisk
|
||||||
shell: python
|
shell: python
|
||||||
@ -246,6 +260,21 @@ jobs:
|
|||||||
seclabel u:r:magisk:s0
|
seclabel u:r:magisk:s0
|
||||||
oneshot
|
oneshot
|
||||||
EOF
|
EOF
|
||||||
|
- name: Merge Language Resources
|
||||||
|
run: |
|
||||||
|
cp ${{ matrix.arch }}/resources.pri pri/en-us.pri
|
||||||
|
cp ${{ matrix.arch }}/AppxManifest.xml pri/en-us.xml
|
||||||
|
tee priconfig.xml <<EOF
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<resources targetOsVersion="10.0.0" majorVersion="1">
|
||||||
|
<index root="\" startIndexAt="\">
|
||||||
|
<indexer-config type="folder" foldernameAsQualifier="true" filenameAsQualifier="true" qualifierDelimiter="."/>
|
||||||
|
<indexer-config type="PRI"/>
|
||||||
|
</index>
|
||||||
|
</resources>
|
||||||
|
EOF
|
||||||
|
wine64 ~/makepri.exe new /pr pri /in MicrosoftCorporationII.WindowsSubsystemForAndroid /cf priconfig.xml /of ${{ matrix.arch }}/resources.pri /o
|
||||||
|
sed -i -zE "s/<Resources.*Resources>/<Resources>\n$(cat xml/* | grep -Po '<Resource [^>]*/>' | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/\$/\\$/g' | sed 's/\//\\\//g')\n<\/Resources>/g" ${{ matrix.arch }}/AppxManifest.xml
|
||||||
- name: Fix External Storage
|
- name: Fix External Storage
|
||||||
run: |
|
run: |
|
||||||
wget -qO- "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/archive/$GITHUB_REF.tar.gz" | sudo tar --wildcards -zxvf- --strip-component=2 '*/x64/system/*'
|
wget -qO- "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/archive/$GITHUB_REF.tar.gz" | sudo tar --wildcards -zxvf- --strip-component=2 '*/x64/system/*'
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
- Unatended installation
|
- Unatended installation
|
||||||
- Automatically activates developers mode in Windows 11
|
- Automatically activates developers mode in Windows 11
|
||||||
- Update to new version while preserving data with one-click script
|
- Update to new version while preserving data with one-click script
|
||||||
|
- Merged all language packs
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
BIN
wine/.cache/winetricks/msxml6/msxml6-KB973686-enu-amd64.exe
Executable file
BIN
wine/.cache/winetricks/msxml6/msxml6-KB973686-enu-amd64.exe
Executable file
Binary file not shown.
BIN
wine/makepri.exe
Executable file
BIN
wine/makepri.exe
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user