shithub: iso

Download patch

ref: 3f41864567637e51424fa721078604eec88628b3
parent: d8cfde2cec4127fff11f9ad889572a49b1cb27f8
author: moody <moody@remilia>
date: Mon Oct 30 08:22:02 EDT 2023

arm64 qcow2 and torrent files

--- a/bin/buildisos.rc
+++ b/bin/buildisos.rc
@@ -9,6 +9,7 @@
 archs=(amd64 386 arm arm64 spim)
 
 www=$home/www/9front
+wwwt=$home/www/torrent
 
 . ./sys/lib/rootstub
 . ./sys/lib/rootbind
@@ -66,6 +67,9 @@
 		mk clean
 		mk 'CONF=reform' install
 		mk clean
+		cd /sys/src/9/arm64
+		mk install
+		mk clean
 	case spim
 		cd /sys/src/9/mt7688/
 		mk clean
@@ -91,6 +95,9 @@
 		cd /sys/src/boot/reform
 		mk clean
 		mk
+		cd /sys/src/boot/qemu
+		mk clean
+		mk
 	}
 }
 
@@ -105,21 +112,25 @@
 mk
 
 fn mkdist {
-	cd /sys/lib/dist
-	mk $www/$1.gz
+	mk $www/$release.$1.gz
+	ip/torrent -c -w http://iso.only9fans.com/9front/$release.$1.gz \
+		-t udp://tracker.opentrackr.org:1337/announce \
+		$www/$release.$1.gz > $wwwt/$release.$1.torrent
 }
 
+cd /sys/lib/dist
 for(a in $archs){
 	switch($a){
 	case amd64
-		mkdist $release.amd64.iso
-		mkdist $release.amd64.qcow2
+		mkdist amd64.iso
+		mkdist amd64.qcow2
 	case 386
-		mkdist $release.386.iso
+		mkdist 386.iso
 	case arm
-		mkdist $release.pi.img
+		mkdist pi.img
 	case arm64
-		mkdist $release.pi3.img
-		mkdist $release.reform.img
+		mkdist pi3.img
+		mkdist reform.img
+		mkdist arm64.qcow2
 	}
 }
--- a/bin/nightlyiso.rc
+++ b/bin/nightlyiso.rc
@@ -21,7 +21,7 @@
 
 buildisos.rc >$log >[2=1]
 date >>$log
-if(~ `{ls $home/www/9front/*gz | grep $rev | wc -l} 6){
+if(~ `{ls $home/www/9front/*gz | grep $rev | wc -l} 7){
 	echo pass >$res
 	echo $rev >$home/www/9front/latest
 }