Updated build script to support Chrome versioning rules

This commit is contained in:
amarcu5
2018-11-13 16:44:37 +00:00
parent b1df1ea12f
commit 6fe45567f1
6 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -663,7 +663,8 @@ for target in "${targets[@]}"; do
# Update manifest version information
if [[ "${update_version}" -eq 1 ]]; then
sed -i.bak -E "s|\"version\": *\"[^\"]+\"|\"version\": \"${git_release_version}\"|g" "out/${EXTENSION_NAME}-${target}/manifest.json"
sed -i.bak -E "s|\"version\": *\"[^\"]+\"|\"version\": \"${git_release_version}.${number_of_commits}\"|g" "out/${EXTENSION_NAME}-${target}/manifest.json"
sed -i.bak -E "s|\"version_name\": *\"[^\"]+\"|\"version_name\": \"${git_release_version}\"|g" "out/${EXTENSION_NAME}-${target}/manifest.json"
rm -rf "out/${EXTENSION_NAME}-${target}/manifest.json.bak"
fi
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -1
View File
@@ -1,7 +1,8 @@
{
"name": "PiPer",
"description": "Adds Picture in Picture functionality to YouTube, Netflix, Amazon Video, Twitch, and more!",
"version": "0.0.0",
"version": "0.0.0.0",
"version_name": "0.0.0",
"icons": {
"128": "Icon-128.png"
},
+1 -1
View File
@@ -10,7 +10,7 @@
<key>CFBundleShortVersionString</key>
<string></string>
<key>CFBundleVersion</key>
<string>179</string>
<string>180</string>
<key>Developer Identifier</key>
<string>BQ6Q24MF9X</string>
<key>URL</key>