mirror of
https://github.com/YunoHost/cd_build.git
synced 2024-09-03 20:06:24 +02:00
Merge branch 'building-on-stretch'
This commit is contained in:
commit
574f6cac52
2 changed files with 9 additions and 8 deletions
8
auto_build.sh
Normal file → Executable file
8
auto_build.sh
Normal file → Executable file
|
@ -7,7 +7,7 @@ repo_url="http://repo.yunohost.org/debian/"
|
||||||
|
|
||||||
build_yunohost_org_dir="/var/www/build"
|
build_yunohost_org_dir="/var/www/build"
|
||||||
|
|
||||||
iso_directory="$script_dir"
|
iso_directory="/var/www/build"
|
||||||
old_iso_directory="$iso_directory/releases_archive"
|
old_iso_directory="$iso_directory/releases_archive"
|
||||||
mkdir -p "$old_iso_directory"
|
mkdir -p "$old_iso_directory"
|
||||||
|
|
||||||
|
@ -21,10 +21,10 @@ get_ynh_release () {
|
||||||
|
|
||||||
build_new_version () {
|
build_new_version () {
|
||||||
local arch="$1"
|
local arch="$1"
|
||||||
echo -e "\n$(date)" >> "$script_dir/ynh_build.log"
|
echo -e "\n$(date)" >> "/var/log/build_yunohost/ynh_build.log"
|
||||||
echo ">>> Build a new iso for YunoHost $dist on $deb_dist $arch" | tee -a "$script_dir/ynh_build.log"
|
echo ">>> Build a new iso for YunoHost $dist on $deb_dist $arch" | tee -a "/var/log/build_yunohost/ynh_build.log"
|
||||||
(cd "$script_dir"
|
(cd "$script_dir"
|
||||||
./build-yunohost $arch $dist $deb_dist 2>&1 | tee -a "$script_dir/ynh_build.log"
|
./build-yunohost $arch $dist $deb_dist 2>&1 | tee -a "/var/log/build_yunohost/ynh_build.log"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Move the old iso in another directory
|
# Move the old iso in another directory
|
||||||
|
|
|
@ -30,7 +30,7 @@ function build
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build a simple/regular debian CD image ?
|
# Build a simple/regular debian CD image ?
|
||||||
build-simple-cdd --dist $DEB_DIST --conf ./simple-cdd-$ARCH.conf
|
sudo -u yunohost build-simple-cdd --dist $DEB_DIST --conf ./simple-cdd-$ARCH.conf
|
||||||
|
|
||||||
# Find the release version of debian
|
# Find the release version of debian
|
||||||
local DEBNUM="$(grep "Version:" tmp/${DEB_DIST}_Release | awk '{print $2;}')"
|
local DEBNUM="$(grep "Version:" tmp/${DEB_DIST}_Release | awk '{print $2;}')"
|
||||||
|
@ -77,15 +77,15 @@ function sign
|
||||||
# Remove previous signature to prevent gpg to ask about overwriting
|
# Remove previous signature to prevent gpg to ask about overwriting
|
||||||
rm -f $NAME.sig
|
rm -f $NAME.sig
|
||||||
|
|
||||||
gpg --output $NAME.sig --detach-sig $NAME
|
sudo gpg --output $NAME.sig --detach-sig $NAME
|
||||||
|
|
||||||
sha256sum $NAME > $NAME.sum
|
sha256sum $NAME > $NAME.sum
|
||||||
}
|
}
|
||||||
|
|
||||||
function build_and_sign
|
function build_and_sign
|
||||||
{
|
{
|
||||||
local ARCH="$1"
|
local ARCH="$1"
|
||||||
|
|
||||||
rm -rf $(pwd)/tmp
|
rm -rf $(pwd)/tmp
|
||||||
rm -rf $(pwd)/images/debian*
|
rm -rf $(pwd)/images/debian*
|
||||||
|
|
||||||
|
@ -95,6 +95,7 @@ function build_and_sign
|
||||||
|
|
||||||
function main
|
function main
|
||||||
{
|
{
|
||||||
|
|
||||||
if [ -z "$ARCH_CHOICE" ]
|
if [ -z "$ARCH_CHOICE" ]
|
||||||
then
|
then
|
||||||
info "No arch chosen, will build both i396 and amd64"
|
info "No arch chosen, will build both i396 and amd64"
|
||||||
|
|
Loading…
Add table
Reference in a new issue