.apk to build_server

This commit is contained in:
rusefi 2020-08-15 23:58:29 -04:00
parent 821644e2a4
commit 418ca7e6ee
4 changed files with 14 additions and 4 deletions

View File

@ -25,4 +25,8 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: rusEFI-release-unsigned
path: ./android/app/build/outputs/apk/release/app-release-unsigned.apk
path: ./android/app/build/outputs/apk/release/rusEFI-release-unsigned.apk
- name: Upload rusEFI Android application
working-directory: .
run: java_console/upload_server.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }} . android/app/build/outputs/apk/release/rusEFI-release-unsigned.apk

View File

@ -32,5 +32,5 @@ jobs:
path: ./java_console/build/*.txt
- name: Upload rusEFI server
working-directory: ./java_console
run: ./upload_server.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}
working-directory: .
run: java_console/upload_server.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }} autoupdate java_console_binary/rusefi_server.jar

View File

@ -13,6 +13,7 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.0"
project.archivesBaseName = "rusEFI";
defaultConfig {
applicationId "com.rusefi.app"

View File

@ -1,5 +1,10 @@
#!/bin/bash
#
# we have code duplication with three "upload_xxx*" files
# todo: clean it up? use this version with five parameters for all use-cases?
# todo: rename this script since it's a universal one?
#
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
echo "No Secrets"
@ -8,4 +13,4 @@ fi
echo -e "\nUploading plugin body"
ncftpput -m -R -v -u "$1" -p "$2" "$3" autoupdate ../java_console_binary/rusefi_server.jar
ncftpput -m -R -v -u "$1" -p "$2" "$3" $4 $5