a script that automatically compiles and packages box86 into a deb using checkinstall.
to download and run:
Please note that the scripts are written for my use case, you will have to tweak them slightly so they work for you.
cd Documents
git clone https://github.com/Itai-Nelken/box86-2deb-weekly-script.git
cd box86-2deb-weekly-script
sudo chmod +x start.sh
./start.shto view credits and other info, type: ./start.sh --about. that will show the credits and some more info and exit.
to update the scripts, type: ./start.sh --update
- This script only works on armhf Debian Linux and Debian based distros.
- it's VERY IMPORTANT to git clone and run the scripts from their folder in ~/Documents!!
- the debs version will be the git tag of the just compiled box86 binary (E.G. 0.2.1) followed by a
+and the current date (E.G.20210324) followed by a.and the git sha1 for the commit the box86 binary was built from (E.G.638b341b). all together it will look lie this for example:0.2.1+20210324.638b341b. - you will need to create a gpg key for the repo signing to work correctly:
sudo apt install gnupg
gpg --full-gen-keyselect option 1
enter: 4096
enter: 0
enter: y
enter your name
enter your email address
press ENTER
enter: o
- by default, this script will compile and package box86 on Tuesday every week until stopped.
to change to different day, change theTuein line 195 ofbox86-2deb-auto.shto the first 3 letters of any other day, its important that the first letter is capitalized. you can use the table bellow:
| day "code" | day |
|---|---|
| Sun | Sunday |
| Mon | Monsay |
| Tue | Tuesday |
| Wed | Wednesday |
| Thu | Thursday |
| Fri | Friday |
| Sat | Staurday |
- The script will only create and move files in
~/Documents/box86-auto-buildand~/Documents/weekly-box86-debs, the final builds will be in~/Documents/box86-auto-build/debsin both tar.xz archives and uncompressed folders. the name of each folder & archive is the date in which they where built in YY-MM-DD format, for example:2021-02-19folder and2021-02-19.tar.xzarchive.
Inside each folder (and archive) there is the box86 deb namedbox86_git-tag+gitsha1-1_armhf.(for example:box86_0.2.2+b3e984bd-1_armhf.deb) and a text file namedsha1.txtcontaining the sha1 (git commit "code") for the box86 version in the deb (for example:ade7d82e).
The script will attempt to upload the deb's and tar.xz's to my apt repo for them, you will have to tweak the upload function or not run it at all. - to see my notes for stuff I might need/use/will use, read NOTES.md
- to run the script without checking for updates or the day, use the
run-once-box86-2deb-script.sh.
the script logs error and warning messages to ~/Documents/box86-auto-build/box86-2deb-weekly_log.log
you won't see the actual error, but what part failed. for example:
[ Wed Feb 24 16:24:15 <timezone> 2021 ] | ERROR | Failed to run package-box86 function! (line 199)
of course <timezone> will be your timezone.