Skip to content

Commit 0cb8dbf

Browse files
committed
fix: parse stringsout of version for proper semver
1 parent f755388 commit 0cb8dbf

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

GUI/ETVR/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "etvr",
3-
"version": "1.0.0-.3",
3+
"version": "1.0.0",
44
"private": true,
55
"description": "A SolidJS project for EyeTrack VR",
66
"author": "EyeTrack VR",

GUI/ETVR/src-tauri/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GUI/ETVR/src-tauri/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "eyetrackvr"
3-
version = "1.0.0-SolidJSGUI.2"
3+
version = "1.0.0"
44
description = "Eye tracking for VR"
55
authors = ["DaOfficialWizard"]
66
license = "MIT"

GUI/ETVR/src-tauri/tauri.conf.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "EyeTrackVR",
11-
"version": "1.0.0-.3"
11+
"version": "1.0.0"
1212
},
1313
"tauri": {
1414
"allowlist": {

repo-tools/scripts/prepareCMD.sh

+23-1
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,26 @@ jq --arg a "$nextReleaseVersion" '.package.version = $a' ./GUI/ETVR/src-tauri/ta
5757
#
5858
#sed -i "s/version = \"[0-9\\.]*\"/version = \"${nextReleaseVersion}\"/g" ./GUI/ETVR/src-tauri/Cargo.toml
5959

60-
printf "[prepareCMD.sh]: Done \n"
60+
# Install the dependencies for toml file
61+
printf "Install the dependencies for the toml file \n"
62+
63+
sudo apt install python3-pip
64+
pip3 install yq
65+
66+
export PATH="~/.local/bin:$PATH"
67+
source ~/.bashrc
68+
69+
tmp=$(mktemp)
70+
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+
72+
printf "[prepareCMD.sh]: Done \n"
73+
74+
75+
76+
# [package]
77+
# name = "etvr"
78+
# version = "0.1.0"
79+
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

0 commit comments

Comments
 (0)