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

Commits:

1 changed file:

Changes:

  • projects/firefox-android/build
    ... ... @@ -53,7 +53,12 @@ cd $builddir-[% c('version') %]
    53 53
     patch -p1 < $rootdir/repos.diff
    
    54 54
     sed -i 's|^\(val VERSION = \).*|\1"[% c("var/as_version") %]"|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
    
    55 55
     sed -i 's|^\(val CHANNEL = \).*|\1ApplicationServicesChannel.RELEASE|' android-components/plugins/dependencies/src/main/java/ApplicationServices.kt
    
    56
    -gv_version=$(find "$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
    
    56
    +[% IF c("var/channel") == "release" -%]
    
    57
    +  gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-omni"
    
    58
    +[% ELSE -%]
    
    59
    +  gv_dir="$distdir/geckoview/org/mozilla/geckoview/geckoview-[% c('var/variant') FILTER lower %]-omni"
    
    60
    +[% END -%]
    
    61
    +gv_version=$(find "$gv_dir" -mindepth 1 -maxdepth 1 -type d -printf '%f\n')
    
    57 62
     sed -i "s|\(\s*const val version = \).*|\1\"$gv_version\"|" android-components/plugins/dependencies/src/main/java/Gecko.kt
    
    58 63
     sed -i 's|\(\s*val channel = \).*|\1GeckoChannel.[% c("var/variant") FILTER upper %]|' android-components/plugins/dependencies/src/main/java/Gecko.kt
    
    59 64