@@ -7,13 +7,16 @@ export REPO_URL="https://github.com/cinnyapp/cinny"
77export REPO_BRANCH="dev"
88export APP_TARGET="dist"
99
10+export REPO_VERSION="2.0.4"
11+export CLICK_VERSION_PREFIX="notificationfix1"
12+
1013if [ -d "${ROOT}/${REPO_NAME}" ]; then
1114 echo "Cleaning up"
1215 rm -rf "${ROOT}/${REPO_NAME}" "${ROOT}/target"
1316fi
1417echo "Cloning source repo"
1518
16−git clone "${REPO_URL}" -b "${REPO_BRANCH}" "${ROOT}/${REPO_NAME}" --depth=1
19+git clone "${REPO_URL}" -b "${REPO_BRANCH}" "${ROOT}/${REPO_NAME}" --depth=1 --branch="v${REPO_VERSION}"
1720cd "${ROOT}/${REPO_NAME}"
1821
1922if [ -d "${ROOT}/patches" ]; then
@@ -33,4 +36,9 @@ echo "Run npm build"
3336npm run build
3437echo "Copying ${APP_TARGET}"
3538cp -r "${APP_TARGET}" "${ROOT}/target"
39+
40+sed -i "s/@CLICK_VERSION@/$REPO_VERSION$CLICK_VERSION_PREFIX/g" "${ROOT}/manifest.json.in"
41+
42+cat "${ROOT}/manifest.json.in"
43+
3644echo "Done. Creating click package."