mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
Update magisk.yml
This commit is contained in:
parent
36d2633e79
commit
c54da4496a
25
.github/workflows/magisk.yml
vendored
25
.github/workflows/magisk.yml
vendored
@ -651,28 +651,35 @@ jobs:
|
|||||||
Write-Host "All Done\`r\`nPress any key to exit"
|
Write-Host "All Done\`r\`nPress any key to exit"
|
||||||
\$null = \$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
|
\$null = \$Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown')
|
||||||
EOF
|
EOF
|
||||||
- name: Generate artifact name
|
- name: Generate release asset name
|
||||||
run: |
|
run: |
|
||||||
variant="${{ github.event.inputs.gapps_variant }}"
|
variant="${{ github.event.inputs.gapps_variant }}"
|
||||||
root="${{ github.event.inputs.root_sol }}"
|
root="${{ github.event.inputs.root_sol }}"
|
||||||
|
magisk="${{ github.event.inputs.magisk_apk }}"
|
||||||
|
amazon="${{ github.event.inputs.remove_amazon }}"
|
||||||
if [[ "$root" = "none" ]]; then
|
if [[ "$root" = "none" ]]; then
|
||||||
name1=""
|
rootVer=""
|
||||||
elif [[ "$root" = "" ]]; then
|
elif [[ "$root" = "" ]]; then
|
||||||
name1="-with-magisk"
|
rootVer=" (Magisk $(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/$magisk.json | jq -r ".magisk.version"))"
|
||||||
else
|
else
|
||||||
name1="-with-${root}"
|
rootVer=" (Magisk $(curl -s https://raw.githubusercontent.com/topjohnwu/magisk-files/master/$magisk.json | jq -r ".magisk.version"))"
|
||||||
fi
|
fi
|
||||||
if [[ "$variant" = "none" || "$variant" = "" ]]; then
|
if [[ "$variant" = "none" || "$variant" = "" ]]; then
|
||||||
name2="-NoGApps"
|
gappsVer=""
|
||||||
else
|
else
|
||||||
name2="-GApps-${variant}"
|
gappsVer=" (GApps ${variant})"
|
||||||
fi
|
fi
|
||||||
echo "artifact_name=WSA${name1}${name2}_${{ env.WSA_VER }}_${{ matrix.arch }}_${{ env.WSA_REL }}" >> $GITHUB_ENV
|
if [[ "$amazon" == "remove" ]]; then
|
||||||
|
amazonVer=""
|
||||||
|
else
|
||||||
|
amazonVer=" (Amazon App Store)"
|
||||||
|
fi
|
||||||
|
echo "release_asset_name=WSA ${{ env.WSA_VER }}$rootVer$gappsVer$amazonVer (${{ matrix.arch }})" >> $GITHUB_ENV
|
||||||
- name: Compress
|
- name: Compress
|
||||||
run: |
|
run: |
|
||||||
zip -qrv ${{ env.artifact_name }}.zip ./${{ matrix.arch }}/*
|
zip -qrv ${{ env.release_asset_name }}.zip ./${{ matrix.arch }}/*
|
||||||
- name: Upload WSA
|
- name: Upload WSA
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: ./${{ env.artifact_name }}.zip
|
files: ./${{ env.release_asset_name }}.zip
|
||||||
tag_name: WSA
|
tag_name: WSA
|
||||||
|
Loading…
Reference in New Issue
Block a user