Skip to content

Commit

Permalink
Change DEB Package versioning scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Rem01Gaming <Rem01_Gaming@proton.me>
  • Loading branch information
Rem01Gaming committed Aug 27, 2024
1 parent 404ff99 commit 3eb52fd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pack-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 'src/**'
- 'share/**'
- 'dpkg-conf/**'
- 'Makefile'

jobs:
build:
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
O = out
.PHONY: all
PREFIX = $(shell echo $$PREFIX)
VERSION = $(shell cat share/version)
COMMIT_HASH = $(shell git rev-parse --short HEAD)
VERSION_CODE =$(shell git rev-list HEAD --count)

all:
@echo "Available commands:"
Expand Down Expand Up @@ -60,6 +63,7 @@ pack-deb:
@cp -rv share/* $(O)/deb/data/data/com.termux/files/usr/share/origami-kernel/
@cp -rv src/* $(O)/deb/data/data/com.termux/files/usr/bin/
@cp -rv dpkg-conf $(O)/deb/DEBIAN
sed -i "s/^Version: .*/Version: $(VERSION)-$(VERSION_CODE)+$(COMMIT_HASH)/" $(O)/deb/DEBIAN/control
@printf "\033[1;38;2;254;228;208m[*] Build packages...\033[0m\n"
@chmod -Rv 755 $(O)/deb/DEBIAN
@chmod -Rv 755 $(O)/deb/data/data/com.termux/files/usr/bin
Expand Down
2 changes: 1 addition & 1 deletion dpkg-conf/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: origami-kernel
Architecture: all
Maintainer: Rem01Gaming
Installed-Size: 3500
Version: 1.1.5
Version:
Homepage: https://github.com/Rem01Gaming/origami_kernel_manager
Depends: fzf, fzy, jq, curl, sqlite
Description: Yet another kernel manager.
2 changes: 1 addition & 1 deletion share/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.5
1.1.5
2 changes: 1 addition & 1 deletion src/okm-menu
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ TERMUX_PATH="/data/data/com.termux/files/usr/bin"
ANDROID=$(getprop ro.build.version.release)
ENTROPY="$(cat /proc/sys/kernel/random/entropy_avail)/$(cat /proc/sys/kernel/random/poolsize) ($(($(cat /proc/sys/kernel/random/entropy_avail) * 100 / $(cat /proc/sys/kernel/random/poolsize)))% available)"
VENDOR=$(getprop "ro.product.manufacturer")
VERSION="$(cat /data/data/com.termux/files/usr/share/origami-kernel/version)"
VERSION="v$(cat /data/data/com.termux/files/usr/share/origami-kernel/version)"

trap "stop_throbber && tput cnorm" EXIT

Expand Down

0 comments on commit 3eb52fd

Please sign in to comment.