Skip to content

Commit

Permalink
Download Microsoft component packages while using `--skip-download-ws…
Browse files Browse the repository at this point in the history
…a` (#698)

Co-authored-by: Doddddd <[email protected]>
  • Loading branch information
sn-o-w and Doddddd authored Oct 24, 2023
1 parent f55c188 commit 0c4c752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/build.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ if [ -z ${OFFLINE+x} ]; then
# shellcheck disable=SC1090
source "$WSA_WORK_ENV" || abort
else
echo "Generate Download Links"
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" "$DOWN_WSA" || abort
WSA_MAJOR_VER=$(python3 getWSAMajorVersion.py "$ARCH" "$WSA_ZIP_PATH")
fi
if [[ "$WSA_MAJOR_VER" -lt 2211 ]]; then
Expand Down
3 changes: 2 additions & 1 deletion scripts/generateWSALinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def __repr__(self):
"download" if sys.argv[3] == "" else Path(sys.argv[3])
ms_account_conf = download_dir/".ms_account"
tempScript = sys.argv[4]
skip_wsa_download = sys.argv[5] == "no" if len(sys.argv) >= 6 else False
cat_id = '858014f3-3934-4abe-8078-4aa193e74ca8'
user = ''
session = Session()
Expand Down Expand Up @@ -153,7 +154,7 @@ def send_req(i, v, out_file_name):
elif re.match(f"Microsoft\.VCLibs\..+_.*_{arch}_.*\.appx", filename):
out_file_name = f"{values[1]}_{arch}.appx"
out_file = download_dir / out_file_name
elif re.match(f"MicrosoftCorporationII\.WindowsSubsystemForAndroid_.*\.msixbundle", filename):
elif not skip_wsa_download and re.match(f"MicrosoftCorporationII\.WindowsSubsystemForAndroid_.*\.msixbundle", filename):
tmp_wsa_build_ver = re.search(u'\d{4}.\d{5}.\d{1,}.\d{1,}', filename).group()
if(wsa_build_ver == 0):
wsa_build_ver = tmp_wsa_build_ver
Expand Down

0 comments on commit 0c4c752

Please sign in to comment.