37
37
38
38
# print the next release version
39
39
40
- printf " Next version: ${nextReleaseVersion} \n"
40
+ printf " [prepareCMD.sh]: Next version: ${nextReleaseVersion} \n"
41
41
42
42
# 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"
44
44
45
- printf " Update the version in the package.json file \n"
45
+ printf " [prepareCMD.sh]: Updating the version in the package.json file \n"
46
46
47
47
# make a temp file
48
48
tmp=$( mktemp)
49
49
50
50
jq --arg a " $nextReleaseVersion " ' .version = $a' ./GUI/ETVR/package.json > " $tmp " && mv " $tmp " ./GUI/ETVR/package.json -f
51
51
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"
53
55
54
56
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"
55
58
56
59
# printf "Update the version in the Cargo.toml file \n"
57
60
#
58
61
# sed -i "s/version = \"[0-9\\.]*\"/version = \"${nextReleaseVersion}\"/g" ./GUI/ETVR/src-tauri/Cargo.toml
59
62
60
63
# 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"
62
65
63
- sudo apt install python3-pip
64
66
pip3 install yq
65
67
66
68
export PATH=" ~/.local/bin:$PATH "
@@ -69,14 +71,8 @@ source ~/.bashrc
69
71
tmp=$( mktemp)
70
72
tomlq -t --arg version " $nextReleaseVersion " ' .package.version |= $version' ./GUI/ETVR/src-tauri/Cargo.toml > " $tmp " && mv " $tmp " ./GUI/ETVR/src-tauri/Cargo.toml -f
71
73
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
79
77
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