Skip to content

Commit 31af810

Browse files
committed
fix: clean up shell script for prepareCMD
1 parent 20f67b2 commit 31af810

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

repo-tools/scripts/prepareCMD.sh

+12-16
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,32 @@ fi
3737

3838
# print the next release version
3939

40-
printf "Next version: ${nextReleaseVersion}\n"
40+
printf "[prepareCMD.sh]: Next version: ${nextReleaseVersion}\n"
4141

4242
# This script is used to execute the prepareCMD.sh script on the remote host
43-
printf "Executing prepareCMD.sh on remote host \n"
43+
printf "[prepareCMD.sh]: Executing prepareCMD.sh on remote host \n"
4444

45-
printf "Update the version in the package.json file \n"
45+
printf "[prepareCMD.sh]: Updating the version in the package.json file \n"
4646

4747
# make a temp file
4848
tmp=$(mktemp)
4949

5050
jq --arg a "$nextReleaseVersion" '.version = $a' ./GUI/ETVR/package.json > "$tmp" && mv "$tmp" ./GUI/ETVR/package.json -f
5151

52-
printf "Update the version in the tauri.conf.json file \n"
52+
printf "[prepareCMD.sh]: Done \n"
53+
54+
printf "[prepareCMD.sh]: Updating the version in the tauri.conf.json file \n"
5355

5456
jq --arg a "$nextReleaseVersion" '.package.version = $a' ./GUI/ETVR/src-tauri/tauri.conf.json > "$tmp" && mv "$tmp" ./GUI/ETVR/src-tauri/tauri.conf.json -f
57+
printf "[prepareCMD.sh]: Done \n"
5558

5659
#printf "Update the version in the Cargo.toml file \n"
5760
#
5861
#sed -i "s/version = \"[0-9\\.]*\"/version = \"${nextReleaseVersion}\"/g" ./GUI/ETVR/src-tauri/Cargo.toml
5962

6063
# Install the dependencies for toml file
61-
printf "Install the dependencies for the toml file \n"
64+
printf "[prepareCMD.sh]: Installing the dependencies for the toml file \n"
6265

63-
sudo apt install python3-pip
6466
pip3 install yq
6567

6668
export PATH="~/.local/bin:$PATH"
@@ -69,14 +71,8 @@ source ~/.bashrc
6971
tmp=$(mktemp)
7072
tomlq -t --arg version "$nextReleaseVersion" '.package.version |= $version' ./GUI/ETVR/src-tauri/Cargo.toml > "$tmp" && mv "$tmp" ./GUI/ETVR/src-tauri/Cargo.toml -f
7173

72-
printf "[prepareCMD.sh]: Done \n"
73-
74-
75-
76-
# [package]
77-
# name = "etvr"
78-
# version = "0.1.0"
74+
# validate the Cargo.toml file
75+
#printf "[prepareCMD.sh]: Validating the Cargo.toml file \n"
76+
#cat ./GUI/ETVR/src-tauri/Cargo.toml
7977

80-
# q: can you modify the version parameter in a toml file that looks like the above?
81-
# a: yes, you can use sed to modify the version parameter in a toml file that looks like the above
82-
# the command is: sed -i "s/version = \"[0-9\\.]*\"/version = \"${nextReleaseVersion}\"/g" ./GUI/ETVR/src-tauri/Cargo.toml
78+
printf "[prepareCMD.sh]: Done, continuing with release. \n"

0 commit comments

Comments
 (0)