Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

entities.rs

Blame
    • Nicolas80's avatar
      3d7b15c0
      * Added sc_cli::arg_enums::CryptoScheme partial copy in keys.rs · 3d7b15c0
      Nicolas80 authored
      * Started to investigate being able to make subkey command and trying to use sp_core::crypto::CryptoType instead of custom KeyPair
      * Big refactoring to have all in one vault_account db table; using recursion through `parent` property
      * Added AccountTreeNode object and related methods to be able to more easily handle whole tree of accounts
      * Removed now unused vault_derivation
      * Replaced remaining usages of `rpassword` and removed the dependency
      * Added `indoc` dependency to support cleaner display of multi-line strings in tests
      3d7b15c0
      History
      * Added sc_cli::arg_enums::CryptoScheme partial copy in keys.rs
      Nicolas80 authored
      * Started to investigate being able to make subkey command and trying to use sp_core::crypto::CryptoType instead of custom KeyPair
      * Big refactoring to have all in one vault_account db table; using recursion through `parent` property
      * Added AccountTreeNode object and related methods to be able to more easily handle whole tree of accounts
      * Removed now unused vault_derivation
      * Replaced remaining usages of `rpassword` and removed the dependency
      * Added `indoc` dependency to support cleaner display of multi-line strings in tests
    build-apk.sh 1.33 KiB
    #!/bin/bash
    # [[ -z $1 ]] && echo "Please choose a version." && exit 1
    
    fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
    
    withPush=$1
    
    APPNAME="gecko"
    VERSION=$(awk -F '+' '{ print $1 }' <<<$fVersion)
    BUILD=$(awk -F '+' '{ print $2 }' <<<$fVersion)
    ori_app="app.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
    
    if [[ -d $HOME/kDrive/Gecko-APK ]]; then
        DL="$HOME/kDrive/Gecko-APK"
    elif [[ -d $HOME/Téléchargements ]]; then
        DL="$HOME/Téléchargements"
    elif [[ -d $HOME/Downloads ]]; then
        DL="$HOME/Downloads"
    else
        DL="/tmp"
    fi
    
    appPath="$DL/${APPNAME}-${VERSION}+${BUILD}.apk"
    mv build/app/outputs/flutter-apk/$ori_app "$appPath" || exit 1
    
    [[ $withPush == "withPush" ]] && /home/poka/scripts/link/pushGecko $VERSION+$BUILD
    
    exit 0