mirror of
https://github.com/fbelavenuto/arpl.git
synced 2026-01-05 08:12:06 +08:00
Compare commits
8 Commits
v0.4-alpha
...
v0.4-alpha
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fe3c41ce4 | ||
|
|
e097941014 | ||
|
|
67f1ee8066 | ||
|
|
f74d889ce3 | ||
|
|
9ac8279c2b | ||
|
|
f5220d1468 | ||
|
|
7898b54980 | ||
|
|
2ad2825c46 |
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@@ -2,8 +2,8 @@ name: Build image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# branches:
|
branches:
|
||||||
# - main
|
- main
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -87,12 +87,13 @@ jobs:
|
|||||||
#qemu-img convert -O vmdk arpl.img arpl.vmdk
|
#qemu-img convert -O vmdk arpl.img arpl.vmdk
|
||||||
qemu-img convert -O vmdk -o adapter_type=lsilogic arpl.img -o subformat=monolithicFlat arpl.vmdk
|
qemu-img convert -O vmdk -o adapter_type=lsilogic arpl.img -o subformat=monolithicFlat arpl.vmdk
|
||||||
|
|
||||||
# Zip image
|
# Zip image and generate checksum
|
||||||
- name: Pack
|
- name: Pack
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
|
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.img.zip" arpl.img
|
||||||
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl*.vmdk
|
zip -9 "arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip" arpl*.vmdk
|
||||||
|
(cd .buildroot/output/images && sha256sum bzImage rootfs.cpio.xz) >> sha256sum
|
||||||
|
|
||||||
# Upload artifact
|
# Upload artifact
|
||||||
- name: Upload
|
- name: Upload
|
||||||
@@ -114,3 +115,4 @@ jobs:
|
|||||||
arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip
|
arpl-${{ steps.build.outputs.VERSION }}.vmdk.zip
|
||||||
.buildroot/output/images/bzImage
|
.buildroot/output/images/bzImage
|
||||||
.buildroot/output/images/rootfs.cpio.xz
|
.buildroot/output/images/rootfs.cpio.xz
|
||||||
|
sha256sum
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
ARPL_VERSION="0.4-alpha8"
|
ARPL_VERSION="0.4-alpha9"
|
||||||
|
|
||||||
# Define paths
|
# Define paths
|
||||||
TMP_PATH="/tmp"
|
TMP_PATH="/tmp"
|
||||||
|
|||||||
@@ -797,6 +797,13 @@ function updateMenu() {
|
|||||||
fi
|
fi
|
||||||
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
--infobox "Downloading last version ${TAG}" 0 0
|
--infobox "Downloading last version ${TAG}" 0 0
|
||||||
|
# Download checksum
|
||||||
|
STATUS=`curl --insecure -s -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl/releases/download/${TAG}/sha256sum" -o /tmp/sha256sum`
|
||||||
|
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
|
||||||
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
|
--msgbox "Error downloading checksums" 0 0
|
||||||
|
continue
|
||||||
|
fi
|
||||||
STATUS=`curl --insecure -s -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl/releases/download/${TAG}/bzImage" -o /tmp/bzImage`
|
STATUS=`curl --insecure -s -w "%{http_code}" -L "https://github.com/fbelavenuto/arpl/releases/download/${TAG}/bzImage" -o /tmp/bzImage`
|
||||||
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
|
if [ $? -ne 0 -o ${STATUS} -ne 200 ]; then
|
||||||
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
@@ -811,6 +818,12 @@ function updateMenu() {
|
|||||||
fi
|
fi
|
||||||
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
--infobox "Installing new files" 0 0
|
--infobox "Installing new files" 0 0
|
||||||
|
(cd /tmp && sha256sum --status -c sha256sum)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
|
--msgbox "Checksum do not match!" 0 0
|
||||||
|
continue
|
||||||
|
fi
|
||||||
mv /tmp/bzImage "${ARPL_BZIMAGE_FILE}"
|
mv /tmp/bzImage "${ARPL_BZIMAGE_FILE}"
|
||||||
mv /tmp/rootfs.cpio.xz "${ARPL_RAMDISK_FILE}"
|
mv /tmp/rootfs.cpio.xz "${ARPL_RAMDISK_FILE}"
|
||||||
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
dialog --backtitle "`backtitle`" --title "Update arpl" --aspect 18 \
|
||||||
|
|||||||
Reference in New Issue
Block a user