Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
45b557a
Update tools_def.template
YBronst Sep 22, 2025
45283d7
Update buildme
YBronst Sep 22, 2025
111ce18
Create makeiso7z
YBronst Sep 22, 2025
f4e5a77
Update makepkg
YBronst Sep 22, 2025
f0d2b55
Create makeutils7z
YBronst Sep 22, 2025
3f1257f
Update ebuild.sh
YBronst Sep 22, 2025
7c2d922
Update makeall.sh
YBronst Sep 22, 2025
a89de8c
Update xbuildme
YBronst Sep 22, 2025
9579ca7
Update main.yml
YBronst Sep 22, 2025
ab5a6d9
Important changes and fixes.
YBronst Sep 22, 2025
d4db37e
Update makeiso7z
YBronst Sep 22, 2025
faf7cf3
Update makeutils7z
YBronst Sep 22, 2025
ee63ce5
Update makeiso7z
YBronst Sep 23, 2025
e75674b
Update makeiso7z
YBronst Sep 23, 2025
1366c53
Update makeutils7z
YBronst Sep 23, 2025
aac2d14
Update main.yml
YBronst Sep 23, 2025
58cfba3
Update main.yml
YBronst Sep 23, 2025
ff40b5c
Update makeutils7z
YBronst Sep 23, 2025
2203984
Update makeiso7z
YBronst Sep 23, 2025
4478c06
Create makeAll7z
YBronst Sep 23, 2025
afdc647
Delete makeiso7z
YBronst Sep 23, 2025
61590ed
Delete makeutils7z
YBronst Sep 23, 2025
5994c94
Update makeV2
YBronst Sep 23, 2025
ffcf6d4
Update makeV2
YBronst Sep 23, 2025
c602e2d
Update makeV2
YBronst Sep 23, 2025
e78cc72
Update makeV2
YBronst Sep 23, 2025
d7b4803
Update makepkg
YBronst Sep 23, 2025
2af9f94
Update makeiso
YBronst Sep 23, 2025
756b02c
Update makeAll7z
YBronst Sep 23, 2025
8703c03
Update main.yml
YBronst Sep 25, 2025
77fa914
Update main.yml
YBronst Sep 25, 2025
6ed65aa
Merge branch 'master' of https://github.com/YBronst/CloverBootloader
YBronst Sep 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update makeV2
  • Loading branch information
YBronst committed Sep 23, 2025
commit e78cc723c461ec1c72a9a7387d37a8782c24b65c
40 changes: 28 additions & 12 deletions CloverPackage/makeV2
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
#!/bin/bash
#
# alternate build for CloverV2 (macOS/Linux)
# Alternate build for CloverV2 (macOS/Linux)

cd "$(dirname "$([ -L "$0" ] && readlink "$0" || echo "$0")")" || exit 1
# --- Go to script directory ---
SCRIPT_PATH="$0"
[[ -L "$SCRIPT_PATH" ]] && SCRIPT_PATH=$(readlink "$SCRIPT_PATH")
cd "$(dirname "$SCRIPT_PATH")" || exit 1
ROOT="$PWD"

# --- Prepare output directory ---
SYMROOT="${ROOT}/sym"
mkdir -p "$SYMROOT"

REVISION=$(git describe --tags "$(git rev-list --tags --max-count=1)" 2>/dev/null || echo "untagged")
# --- Determine revision ---
if command -v git &>/dev/null && git rev-parse --git-dir &>/dev/null; then
REVISION=$(git describe --tags "$(git rev-list --tags --max-count=1)" 2>/dev/null || echo "untagged")
else
REVISION="untagged"
fi

# zip CloverV2, excluding .empty and .DS_Store
zip -qr "CloverV2-${REVISION}.zip" CloverV2 -x "*/.DS_Store" "*/.empty"
# --- Archive CloverV2 ---
zip -qrX "CloverV2-${REVISION}.zip" CloverV2 -x "*/.DS_Store" "*/.empty"
mv "CloverV2-${REVISION}.zip" "$SYMROOT" || exit 1

# ====== Archiving CLOVERX64.efi ======
cd "$ROOT/CloverV2/EFI/CLOVER/" || exit 1
if [ -f CLOVERX64.efi ]; then
zip -q CLOVERX64.efi.zip CLOVERX64.efi
mv CLOVERX64.efi.zip "$SYMROOT" || exit 1
# --- Archive CLOVERX64.efi if exists ---
CLOVER_DIR="$ROOT/CloverV2/EFI/CLOVER"
if [[ -f "$CLOVER_DIR/CLOVERX64.efi" ]]; then
(
cd "$CLOVER_DIR" || exit 1
zip -qX CLOVERX64.efi.zip CLOVERX64.efi
mv CLOVERX64.efi.zip "$SYMROOT" || exit 1
)
fi
cd "$ROOT" || exit 1

# open folder
# --- Show results ---
echo
echo "========= Build Artifacts in $SYMROOT ========="
ls -lh "$SYMROOT"

# --- Open result folder ---
if command -v open &>/dev/null; then
open "$SYMROOT" # macOS
elif command -v xdg-open &>/dev/null; then
Expand Down