Skip to content
Snippets Groups Projects
Select Git revision
  • bcc0a50b49c8c8b9a5588685de2f7071d83af0aa
  • master default protected
  • upgrade-polkadot-v1.19.1
  • 311_gtest_fixes
  • set_UniversalDividendApi_in_RuntimeApiCollection
  • tuxmain/fix-change-owner-key
  • network/gtest-1000 protected
  • upgradable-multisig
  • runtime/gtest-1000
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • gtest-1000-0.11.1 protected
  • gtest-1000-0.11.0 protected
  • gtest-1000 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
41 results

build-deb.sh

Blame
    • Benjamin Gallois's avatar
      eb590e1c
      Fix #200 (!267) · eb590e1c
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * remove /ws from listen address
      
      * fix error when user already exist
      
      * change binary to duniter2
      
      * add rpc-cors
      
      * add config documentation
      
      * add reference in service files
      
      * use embedded distance oracle
      
      * optimize ci
      
      * use docker cache
      
      * add systemd timer
      
      * add documentation
      
      * fix base_path default
      
      * add duniter user
      
      * add services
      
      * update docs
      
      * add deb package to ci
      
      * add deb docker building
      eb590e1c
      History
      Fix #200 (!267)
      Benjamin Gallois authored and Hugo Trentesaux's avatar Hugo Trentesaux committed
      * remove /ws from listen address
      
      * fix error when user already exist
      
      * change binary to duniter2
      
      * add rpc-cors
      
      * add config documentation
      
      * add reference in service files
      
      * use embedded distance oracle
      
      * optimize ci
      
      * use docker cache
      
      * add systemd timer
      
      * add documentation
      
      * fix base_path default
      
      * add duniter user
      
      * add services
      
      * update docs
      
      * add deb package to ci
      
      * add deb docker building
    build-apk.sh 1.39 KiB
    #!/bin/bash
    
    fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
    
    withPush=$1
    
    APPNAME="gecko"
    VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
    BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
    v7_app="app-armeabi-v7a-release.apk"
    v8_app="app-arm64-v8a-release.apk"
    x86_64_app="app-x86_64-release.apk"
    
    echo "Nom du build final: ${APPNAME}-${VERSION}+${BUILD}.apk"
    [[ $withPush == "withPush" ]] && echo "Publish after build"
    
    ## To build Rust dependancies
    # cargo br
    
    #flutter clean
    if [[ $1 == "bundle" ]]; then
    	flutter build appbundle --release --target-platform android-arm,android-arm64 --build-name $VERSION --build-number $BUILD
    else
    #	flutter build apk --release --split-per-abi --target-platform android-arm,android-arm64 --build-name $VERSION --build-number $BUILD
    	flutter build apk --release --split-per-abi --build-name $VERSION --build-number $BUILD
    #	flutter build apk --release --build-name $VERSION --build-number $BUILD
    fi
    
    DL="/tmp"
    appPathV7="$DL/${APPNAME}-${VERSION}+${BUILD}-v7a.apk"
    appPathV8="$DL/${APPNAME}-${VERSION}+${BUILD}-v8a.apk"
    appPathX84_64="$DL/${APPNAME}-${VERSION}+${BUILD}-x86_64.apk"
    mv build/app/outputs/flutter-apk/$v7_app "$appPathV7" || exit 1
    mv build/app/outputs/flutter-apk/$v8_app "$appPathV8" || exit 1
    mv build/app/outputs/flutter-apk/$x86_64_app "$appPathX84_64" || exit 1
    
    [[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION+$BUILD
    
    exit 0