We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00d5f58 commit 458617bCopy full SHA for 458617b
scripts/update-version-file.sh
@@ -25,7 +25,7 @@ VERSION="${VERSION:-"${npm_package_version}"}"
25
echo "export const VERSION = '${VERSION}';" > electron/common/version.ts
26
27
# Rename dist files since they were built before the version was ticked
28
-for file in "$ROOT_DIR/dist"/*; do
+find "$ROOT_DIR/dist" -type f | while read -r file; do
29
if [[ $file =~ (.*)-v[0-9]+\.[0-9]+\.[0-9]+-(.*) ]]; then
30
new_file="${BASH_REMATCH[1]}-v${VERSION}-${BASH_REMATCH[2]}"
31
mv "$file" "$new_file"
0 commit comments