Refine version + publish.

This commit is contained in:
Brad Nelson
2024-01-01 23:19:33 -08:00
parent 5d0f2ad3b9
commit 2980458eff
3 changed files with 16 additions and 4 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
VERSION=7.0.7.16
VERSION=7.0.7.17
STABLE_VERSION=7.0.6.19
OLD_STABLE_VERSION=7.0.5.4
REVISION=$(shell git rev-parse HEAD | head -c 20)
@ -794,7 +794,7 @@ publish-windows: $(WINDOWS)/uEf32.exe $(WINDOWS)/uEf64.exe
$(ARCHIVE)/uEf64-$(VERSION).exe
publish-index: | $(GEN)
$(GSUTIL) ls -l gs://eforth/releases | tools/webindex.py >$(GEN)/archive.html
./tools/webindex.py >$(GEN)/archive.html
$(GSUTIL_CP) \
$(GEN)/archive.html \
gs://eforth/releases/archive.html

View File

@ -61,7 +61,7 @@ Alias('deploy', ' '.join([
'cd $dst/deploy && gcloud app deploy -q --project eforth *.yaml', pool='console'),
]))
Alias('publish', ' '.join([
PUBLISH_PARTS = [
Alias('publish-esp32', ' '.join([
Publish('publish-esp32-rev',
'$dst/esp32/ESP32forth.zip',
@ -112,4 +112,13 @@ Alias('publish', ' '.join([
'uEf64-{{VERSION}}.exe'),
])),
])),
]
Alias('publish', ' '.join([
Command('publish-index', ' '.join([
'$src/tools/webindex.py',
'$src/tools/publish.py',
] + PUBLISH_PARTS),
'$src/tools/webindex.py >$dst/gen/archive.html && ' +
'$src/tools/publish.py --src $dst/gen/archive.html --dst archive.html'),
]))

View File

@ -14,6 +14,9 @@
# limitations under the License.
import sys
import subprocess
index = str(subprocess.check_output('gsutil ls -l gs://eforth/releases', shell=True), 'ascii')
sys.stdout.write("""<!DOCTYPE html>
<head>
@ -24,7 +27,7 @@ sys.stdout.write("""<!DOCTYPE html>
""")
output = []
for line in sys.stdin.read().splitlines():
for line in index.splitlines():
parts = line.split()
if len(parts) != 3:
continue