setup key
This commit is contained in:
parent
ededf09a67
commit
8f35f5c65b
@ -14,6 +14,8 @@ build(){
|
|||||||
|
|
||||||
build_arm64(){
|
build_arm64(){
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
cd $WORKDIR/flutter
|
||||||
|
flutter pub get
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
$WORKDIR/flutter/ndk_arm64.sh
|
$WORKDIR/flutter/ndk_arm64.sh
|
||||||
cp $WORKDIR/target/aarch64-linux-android/release/liblibrustdesk.so $WORKDIR/flutter/android/app/src/main/jniLibs/arm64-v8a/librustdesk.so
|
cp $WORKDIR/target/aarch64-linux-android/release/liblibrustdesk.so $WORKDIR/flutter/android/app/src/main/jniLibs/arm64-v8a/librustdesk.so
|
||||||
@ -31,13 +33,12 @@ key_gen(){
|
|||||||
then
|
then
|
||||||
if [ ! -f $HOME/upload-keystore.jks ]
|
if [ ! -f $HOME/upload-keystore.jks ]
|
||||||
then
|
then
|
||||||
echo -e "\n$HOME/upload-keystore.jks is not created.\nLet's create it.\nRemember the password you enter in keytool!"
|
$WORKDIR/.devcontainer/setup.sh key
|
||||||
keytool -genkey -v -keystore $HOME/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
|
|
||||||
fi
|
fi
|
||||||
read -r -p "enter the password used to generate $HOME/upload-keystore.jks\n" password
|
read -r -p "enter the password used to generate $HOME/upload-keystore.jks\n" password
|
||||||
echo -e "storePassword=${password}\nkeyPassword=${password}\nkeyAlias=upload\nstoreFile=$HOME/upload-keystore.jks" > $WORKDIR/flutter/android/key.properties
|
echo -e "storePassword=${password}\nkeyPassword=${password}\nkeyAlias=upload\nstoreFile=$HOME/upload-keystore.jks" > $WORKDIR/flutter/android/key.properties
|
||||||
else
|
else
|
||||||
echo "Believing storeFile is created in $WORKDIR/flutter/android/key.properties"
|
echo "Believing storeFile is created ref: $WORKDIR/flutter/android/key.properties"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,10 @@ case $1 in
|
|||||||
linux)
|
linux)
|
||||||
echo "Linux Setup"
|
echo "Linux Setup"
|
||||||
;;
|
;;
|
||||||
|
key)
|
||||||
|
echo -e "\n$HOME/upload-keystore.jks is not created.\nLet's create it.\nRemember the password you enter in keytool!"
|
||||||
|
keytool -genkey -v -keystore $HOME/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user