Skip to content

Commit

Permalink
Final release as a zip
Browse files Browse the repository at this point in the history
* Final release as a zip

* Final release as a zip

To save time

* Final release as a zip(2)

To save time

* Enhanced: Zip creation process

* Nuke : tar commands
  • Loading branch information
ravindu644 authored and ravindu755 committed Mar 22, 2024
1 parent bce87a9 commit f87a9a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
with:
name: "LPoS-${{ env.LPOS_KERNEL_VERSION }}-[S10 5G]"
path: |
out/LPoS*.xz
out/KSU*.xz
out/LPoS*.zip
out/KSU*.zip
- name: Create release
uses: ncipollo/release-action@v1
Expand All @@ -55,15 +55,15 @@ jobs:
draft: false
prerelease: false
token: ${{ secrets.TOKEN }}
artifacts: "out/LPoS*.xz,out/KSU*.xz"
artifacts: "out/LPoS*.zip,out/KSU*.zip"
body: "Commit SHA: ${{ github.sha }}"

- name: Upload to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
document: "out/LPoS*.xz,out/KSU*.xz"
document: "out/LPoS*.zip,out/KSU*.zip"
format: html
disable_web_page_preview: false
message: |
Expand Down
10 changes: 4 additions & 6 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ packing() {

tar_xz() {
cd "$work_dir/out"
tar -cvf "LPoS [${DEVICE}].tar" ./*
xz -9 --threads=0 "LPoS [${DEVICE}].tar"
mv "LPoS [${DEVICE}].tar.xz" "LPoS [${DEVICE}]-${current_datetime}.xz"
zip -r -9 "LPoS [${DEVICE}].zip" "${DEVICE}"
mv "LPoS [${DEVICE}].zip" "LPoS [${DEVICE}]-${current_datetime}.zip"
cd "$work_dir"
echo -e "\n\n[i] Compilation Done..🌛"
}
Expand Down Expand Up @@ -265,9 +264,8 @@ build_ksu(){

tar_xz_ksu() {
cd "$work_dir/out"
tar -cvf "LPoS [${DEVICE}][KSU].tar" "${DEVICE}-KSU"
xz -9 --threads=0 "LPoS [${DEVICE}][KSU].tar"
mv "LPoS [${DEVICE}][KSU].tar.xz" "KSU-LPoS [${DEVICE}]-${current_datetime}.xz"
zip -r -9 "LPoS [${DEVICE}][KSU].zip" "${DEVICE}-KSU"
mv "LPoS [${DEVICE}][KSU].zip" "KSU-LPoS [${DEVICE}]-${current_datetime}.zip"
cd "$work_dir"
echo -e "\n\n[i] KSU Compilation Done..🌛\n"
}
Expand Down

0 comments on commit f87a9a3

Please sign in to comment.