Skip to content

Commit 458617b

Browse files
committed
chore(build): locate artifacts in nested folders under 'dist'
Example where GitHub Actions downloads the artifacts: $ ls -r .: phoenix-app-macos-latest phoenix-app-ubuntu-latest phoenix-app-windows-latest ./phoenix-app-macos-latest: phoenix-v1.20.2-mac-x64.dmg phoenix-v1.20.2-mac-x64.zip ./phoenix-app-ubuntu-latest: phoenix-v1.20.2-linux-amd64.deb ./phoenix-app-windows-latest: phoenix-v1.20.2-win-x64.exe
1 parent 00d5f58 commit 458617b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-version-file.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ VERSION="${VERSION:-"${npm_package_version}"}"
2525
echo "export const VERSION = '${VERSION}';" > electron/common/version.ts
2626

2727
# Rename dist files since they were built before the version was ticked
28-
for file in "$ROOT_DIR/dist"/*; do
28+
find "$ROOT_DIR/dist" -type f | while read -r file; do
2929
if [[ $file =~ (.*)-v[0-9]+\.[0-9]+\.[0-9]+-(.*) ]]; then
3030
new_file="${BASH_REMATCH[1]}-v${VERSION}-${BASH_REMATCH[2]}"
3131
mv "$file" "$new_file"

0 commit comments

Comments
 (0)