• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright (c) 2021 bestechnic (Shanghai) Technologies CO., LIMITED.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15gui_path_src=$1
16gui_path_dest=$2
17product_path=$3
18if [ ! -d "./../../write_flash_gui/" ];then
19   wget -P ${gui_path_src}/ https://downloads.openharmony.cn/tools/bestechnic/write_flash_gui_v1.0.tar.gz
20   cd ${gui_path_src}/
21   tar -zxvf write_flash_gui_v1.0.tar.gz
22   cd -
23fi
24mkdir -p ${gui_path_dest}/auto_build_tool/hash_sig
25mkdir -p ${gui_path_dest}/release_bin
26cp -rf ${gui_path_src}/write_flash_gui ${gui_path_dest}