Commit 56d33d1 1 parent edb6a49 commit 56d33d1 Copy full SHA for 56d33d1
File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ jobs:
130
130
env :
131
131
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132
132
run : |
133
+ sudo apt-get install -y jq
133
134
chmod +x ./repo-tools/scripts/prepareCMD.sh
134
135
semantic-release
135
136
Original file line number Diff line number Diff line change 165
165
[
166
166
"@semantic-release/github",
167
167
{
168
- "addReleases": "bottom"
168
+ "addReleases": "bottom",
169
+ "assets": [
170
+ {
171
+ "path": "./dist/**/*.msi"
172
+ }
173
+ ]
169
174
}
170
175
],
171
176
[
174
179
"assets": [
175
180
"GUI/ETVR/package.json",
176
181
"GUI/ETVR/src-tauri/tauri.conf.json",
182
+ "GUI/ETVR/src-tauri/Cargo.toml",
177
183
"LICENSE*",
178
184
"CHANGELOG.md"
179
185
],
Original file line number Diff line number Diff line change 3
3
# create a vairable to hold a passed in argument
4
4
# this argument is the next release version
5
5
# this is passed in from the .releaserc file
6
+
7
+ sudo apt-get install -y jq
8
+
6
9
nextReleaseVersion=$1
10
+ TARGET_KEY=" version"
11
+
12
+ printf " Next version: ${nextReleaseVersion} \n"
7
13
8
14
# This script is used to execute the prepareCMD.sh script on the remote host
9
15
printf " Executing prepareCMD.sh on remote host \n"
10
16
11
17
printf " Update the version in the package.json file \n"
12
- sed -i " s/\" version\" : \" [0-9\\ .]*\" ,/\" version\" : \"\\ $nextReleaseVersion \" ,/g" ./GUI/ETVR/package.json
18
+
19
+ # make a temp file
20
+ tmp=$( mktemp)
21
+
22
+ jq --arg a " $nextReleaseVersion " ' .version = $a' ./GUI/ETVR/package.json > " $tmp " && mv " $tmp " ./GUI/ETVR/package.json -f
13
23
14
24
printf " Update the version in the tauri.conf.json file \n"
15
- sed -i " s/\" version\" : \" [0-9\\ .]*\" ,/\" version\" : \"\\ $nextReleaseVersion \" ,/g" ./GUI/ETVR/src-tauri/tauri.conf.json
25
+
26
+ jq --arg a " $nextReleaseVersion " ' .version = $a' ./GUI/ETVR/src-tauri/tauri.conf.json > " $tmp " && mv " $tmp " ./GUI/ETVR/src-tauri/tauri.conf.json -f
16
27
17
28
printf " Update the version in the Cargo.toml file \n"
18
- sed -i " s/version = \" [0-9\\ .]*\" /version = \"\\ $nextReleaseVersion \" /g" ./GUI/ETVR/src-tauri/Cargo.toml
29
+
30
+ sed -i " s/version = \" [0-9\\ .]*\" /version = \" ${nextReleaseVersion} \" /g" ./GUI/ETVR/src-tauri/Cargo.toml
19
31
20
32
printf " [prepareCMD.sh]: Done \n"
You can’t perform that action at this time.
0 commit comments