mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00

Additionally, change the 'default' build to be a beta build in the manifest, and give stable releases prettier version numbers.
14 lines
645 B
Bash
Executable file
14 lines
645 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
gitversion=pre$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)
|
|
if grep -Fq 'tridactyl.vim@cmcaine' ./src/manifest.json ; then
|
|
gitversion=""
|
|
fi
|
|
manversion=$(grep '"version":' ./src/manifest.json | cut -d":" -f2 | tr -d \" | tr -d , | cut -d" " -f2)
|
|
version=$manversion$gitversion
|
|
|
|
sed -i.bak 's/REPLACE_ME_WITH_THE_VERSION_USING_SED/'"$version"'/' ./build/background.js
|
|
sed -i.bak 's/REPLACE_ME_WITH_THE_VERSION_USING_SED/'"$version"'/' ./build/content.js
|
|
sed -i.bak 's/REPLACE_ME_WITH_THE_VERSION_USING_SED/'"$version"'/' ./build/static/newtab.html
|
|
rm ./build/background.js.bak
|
|
rm ./build/static/newtab.html.bak
|