mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
fix: revert previous changes
This commit is contained in:
parent
8b188027e1
commit
b0aec4c09f
@ -47,35 +47,14 @@ printf "[prepareCMD.sh]: Updating the version in the dev_config.ini file \n"
|
|||||||
printf "[prepareCMD.sh]: Mass renaming files in the ./build sub folders \n"
|
printf "[prepareCMD.sh]: Mass renaming files in the ./build sub folders \n"
|
||||||
|
|
||||||
buildPaths=($(ls ./build))
|
buildPaths=($(ls ./build))
|
||||||
|
|
||||||
# loop through all the sub folders in the build folder
|
# loop through all the sub folders in the build folder
|
||||||
for buildPath in "${buildPaths[@]}"
|
for buildPath in "${buildPaths[@]}"
|
||||||
do
|
do
|
||||||
printf "[prepareCMD.sh]: Build Path: ${buildPath} \n"
|
printf "[prepareCMD.sh]: Build Path: ${buildPath} \n"
|
||||||
# unzip the fileToRename and rename the bin file inside
|
|
||||||
fileToRename=$(ls ./build/${buildPath})
|
fileToRename=$(ls ./build/${buildPath})
|
||||||
unzip -o ./build/${buildPath}/${fileToRename} -d ./build/${buildPath}/
|
newFileName=$(echo $fileToRename | sed "s/v[0-9]*\.[0-9]*\.[0-9]*/v${nextReleaseVersion}/g")
|
||||||
rm ./build/${buildPath}/${fileToRename}
|
|
||||||
# create a variable with the name of the bin file
|
|
||||||
binFile=$(ls ./build/${buildPath}/ | grep .bin)
|
|
||||||
|
|
||||||
# rename the bin file
|
|
||||||
newBinFileName=$(echo $binFile | sed "s/v[0-9]*\.[0-9]*\.[0-9]*/v${nextReleaseVersion}/g")
|
|
||||||
mv ./build/${buildPath}/${binFile} ./build/${buildPath}/${newBinFileName}
|
|
||||||
|
|
||||||
# strip the .bin extension from the newBinFileName
|
|
||||||
newFileName=$(echo $newBinFileName | sed 's/.bin//g')
|
|
||||||
|
|
||||||
printf "[prepareCMD.sh]: Renaming file: ${fileToRename} to ${newFileName} \n"
|
printf "[prepareCMD.sh]: Renaming file: ${fileToRename} to ${newFileName} \n"
|
||||||
# zip the binFile and the manifest.json file
|
mv ./build/${buildPath}/${fileToRename} ./build/${buildPath}/${newFileName}
|
||||||
zip -j ./build/${buildPath}/${newFileName}.zip ./build/${buildPath}/${newBinFileName} ./build/${buildPath}/manifest.json
|
|
||||||
|
|
||||||
# remove the binFile and the manifest.json file
|
|
||||||
rm ./build/${buildPath}/${newBinFileName}
|
|
||||||
rm ./build/${buildPath}/manifest.json
|
|
||||||
|
|
||||||
# list the contents of the zip file
|
|
||||||
unzip -l ./build/${buildPath}/${newFileName}.zip
|
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "[prepareCMD.sh]: Done, continuing with release. \n"
|
printf "[prepareCMD.sh]: Done, continuing with release. \n"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user