-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-linux.sh
More file actions
44 lines (36 loc) Β· 1.27 KB
/
Copy pathbuild-linux.sh
File metadata and controls
44 lines (36 loc) Β· 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Build Linux packages for FolderZipperVersioning v1.2
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "π¨ Building Linux packages for FolderZipperVersioning v1.2..."
# Create builds directory
mkdir -p builds
# Build .deb package
echo "π¦ Building Debian package..."
dpkg-deb --build debian builds/folder-zipper-versioning_1.2_all.deb
echo "β Debian package created: builds/folder-zipper-versioning_1.2_all.deb"
# Build Arch package (requires makepkg)
if command -v makepkg &> /dev/null; then
echo "π¦ Building Arch Linux package..."
cd arch-linux
makepkg --syncdeps --cleanbuild --noconfirm
mv folder-zipper-versioning-*.pkg.tar.zst ../builds/
cd ..
echo "β Arch package created"
else
echo "β makepkg not found, skipping Arch build"
fi
# Build RPM package (requires rpmbuild)
if command -v rpmbuild &> /dev/null; then
echo "π¦ Building RPM package..."
rpmbuild -bb rpm/folder-zipper-versioning.spec --define "_topdir $SCRIPT_DIR/rpmbuild"
mv rpmbuild/RPMS/noarch/*.rpm builds/
echo "β RPM package created"
else
echo "β rpmbuild not found, skipping RPM build"
fi
echo ""
echo "β
All Linux packages built successfully!"
echo "π Packages location: builds/"
ls -lh builds/