improvements for deployment script
This commit is contained in:
parent
14aa2f39a5
commit
2cda1011f7
@ -5,11 +5,12 @@ import argparse
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import platform
|
||||||
from typing import Final
|
from typing import Final
|
||||||
|
|
||||||
|
|
||||||
# TODO: Should we make this configurable?
|
|
||||||
BUILDER = "cross"
|
BUILDER = "cross"
|
||||||
|
USE_SSHPASS = False
|
||||||
|
|
||||||
# This script can easily be adapted to other remote machines, Linux boards and
|
# This script can easily be adapted to other remote machines, Linux boards and
|
||||||
# remote configurations by tweaking / hardcoding these parameter, which generally are constant
|
# remote configurations by tweaking / hardcoding these parameter, which generally are constant
|
||||||
@ -142,8 +143,8 @@ def bld_deploy_run(args):
|
|||||||
# ssh_target_ident = f"{args.user}@{args.address}"
|
# ssh_target_ident = f"{args.user}@{args.address}"
|
||||||
ssh_target_ident = "small_flatsat"
|
ssh_target_ident = "small_flatsat"
|
||||||
sshpass_cmd = ""
|
sshpass_cmd = ""
|
||||||
# if platform.system() != "Windows":
|
if USE_SSHPASS and platform.system() != "Windows":
|
||||||
# sshpass_cmd = f"sshpass {sshpass_args}"
|
sshpass_cmd = f"sshpass {sshpass_args}"
|
||||||
dest_path = f"{args.dest}/{args.app}"
|
dest_path = f"{args.dest}/{args.app}"
|
||||||
if not args.source:
|
if not args.source:
|
||||||
source_path = f"{os.getcwd()}/target/{args.tc}/{build_folder}/{args.app}"
|
source_path = f"{os.getcwd()}/target/{args.tc}/{build_folder}/{args.app}"
|
||||||
|
Loading…
Reference in New Issue
Block a user