[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 40884: add upload-sha256sums make target and release script



Title: GitLab

richard pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • 37c0d265
    by Dan Ballard at 2023-11-16T00:37:36+00:00
    Bug 40884: add upload-sha256sums make target and release script
    

4 changed files:

Changes:

  • Makefile
    ... ... @@ -650,12 +650,28 @@ cargo_vendor-rcodesign: submodule-update
    650 650
     submodule-update:
    
    651 651
     	git submodule update --init
    
    652 652
     
    
    653
    +# requires tpo_user variable be set in rbm.local.conf
    
    654
    +torbrowser-upload-sha256sums-release: submodule-update
    
    655
    +	$(rbm) build release --step upload_sha256sums --target release --target torbrowser
    
    656
    +
    
    657
    +# requires tpo_user variable be set in rbm.local.conf
    
    658
    +torbrowser-upload-sha256sums-alpha: submodule-update
    
    659
    +	$(rbm) build release --step upload_sha256sums --target alpha --target torbrowser
    
    660
    +
    
    653 661
     torbrowser-signtag-release: submodule-update
    
    654 662
     	$(rbm) build release --step signtag --target release --target torbrowser
    
    655 663
     
    
    656 664
     torbrowser-signtag-alpha: submodule-update
    
    657 665
     	$(rbm) build release --step signtag --target alpha --target torbrowser
    
    658 666
     
    
    667
    +# requires tpo_user variable be set in rbm.local.conf
    
    668
    +mullvadbrowser-upload-sha256sums-release: submodule-update
    
    669
    +	$(rbm) build release --step upload_sha256sums --target release --target mullvadbrowser
    
    670
    +
    
    671
    +# requires tpo_user variable be set in rbm.local.conf
    
    672
    +mullvadbrowser-upload-sha256sums-alpha: submodule-update
    
    673
    +	$(rbm) build release --step upload_sha256sums --target alpha --target mullvadbrowser
    
    674
    +
    
    659 675
     mullvadbrowser-signtag-release: submodule-update
    
    660 676
     	$(rbm) build release --step signtag --target release --target mullvadbrowser
    
    661 677
     
    

  • projects/release/config
    ... ... @@ -258,3 +258,8 @@ steps:
    258 258
         debug: 0
    
    259 259
         input_files: []
    
    260 260
         dmg2mar: '[% INCLUDE dmg2mar %]'
    
    261
    +  upload_sha256sums:
    
    262
    +    build_log: '-'
    
    263
    +    debug: 0
    
    264
    +    input_files: []
    
    265
    +    upload_sha256sums: '[% INCLUDE upload_sha256sums %]'

  • projects/release/upload_sha256sums
    1
    +#!/bin/sh
    
    2
    +# Tool to sign sha256sums of builds and upload them to where signing/download-unsigned-sha256sums-gpg-signatures-from-people-tpo expects them to be
    
    3
    +
    
    4
    +version=[% c("version") %]-[% c("var/torbrowser_build") %]
    
    5
    +signed=[% c("var/signed_status") %]
    
    6
    +channel=[% c("var/build_target") %]
    
    7
    +browser=[% c("var/browser_type") %]
    
    8
    +
    
    9
    +src_dir=[% shell_quote(path(dest_dir)) %]/$signed/$version
    
    10
    +
    
    11
    +target_dir=~/public_html/builds/$browser/$channel/$version/
    
    12
    +
    
    13
    +echo "browser:$browser channel:$channel signed:$signed version:$version"
    
    14
    +
    
    15
    +if [ ! -d $src_dir ]; then
    
    16
    +  echo "ERROR: $src_dir does not exist!"
    
    17
    +  exit
    
    18
    +fi
    
    19
    +
    
    20
    +cd $src_dir
    
    21
    +for i in sha256sums*.txt; do
    
    22
    +	if [ ! -f $i.asc ] ; then
    
    23
    +		gpg -abs [% c("var/sign_build_gpg_opts") %] $i;
    
    24
    +	fi
    
    25
    +done
    
    26
    +
    
    27
    +if [ -z '[% c("var/tpo_user") %]' ]; then
    
    28
    +  print "tpo_user variable unset, required to upload to people.torproject.org. Please set in rbm.local.conf"
    
    29
    +  exit
    
    30
    +fi
    
    31
    +
    
    32
    +ssh [% c("var/tpo_user") %]@people.torproject.org "mkdir -p $target_dir"
    
    33
    +rsync sha256sums*.* [% c("var/tpo_user") %]@people.torproject.org:$target_dir
    
    34
    +echo "Synced sha256sums to https://people.torproject.org/~[% c("var/tpo_user") %]/builds/$browser/$channel/$version/"
    \ No newline at end of file

  • rbm.local.conf.example
    ... ... @@ -55,6 +55,11 @@ var:
    55 55
       ### and sha256sums-unsigned-build.incrementals.txt files.
    
    56 56
       #sign_build_gpg_opts: '--local-user XXXXXXXX'
    
    57 57
     
    
    58
    +  ### The var/tpo_user option is used on the release upload_sha256sums step
    
    59
    +  ### and is the user on people.torproject.org that ssh/rsync will try to
    
    60
    +  ### upload the files to
    
    61
    +  #tpo_user: username
    
    62
    +
    
    58 63
       ### The clean configuration is used by the cleaning script to find the
    
    59 64
       ### branches and build targets you are using, to compute the list of
    
    60 65
       ### files that should be kept.
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits