Skip to content

Commit

Permalink
Fix file removal
Browse files Browse the repository at this point in the history
Move file removal to build.ps1
  • Loading branch information
will-v-pi committed Sep 26, 2024
1 parent 4bc56f5 commit 54ad547
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -295,5 +295,9 @@ $filename = 'openocd-{0}-{1}.zip' -f
($Matches.version -replace '-.*$', ''),
$suffix

# Removing files with special char in their names
# they cause issues with some decompression libraries
exec { Remove-Item "build\openocd-install\mingw$bitness\share\openocd\scripts\target\1986*.cfg" }

Write-Host "Saving OpenOCD package to $filename"
exec { tar -a -cf "bin\$filename" -C "build\openocd-install\mingw$bitness\bin" * -C "..\share\openocd" "scripts" }
4 changes: 0 additions & 4 deletions packages/windows/openocd/build-openocd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ make -j$(nproc)
DESTDIR="$PWD/../openocd-install" make install
cp "/mingw$BITNESS/bin/libhidapi-0.dll" "$PWD/../openocd-install/mingw$BITNESS/bin"
cp "/mingw$BITNESS/bin/libusb-1.0.dll" "$PWD/../openocd-install/mingw$BITNESS/bin"

# Removing files with special char in their names
# they cause issues with some decompression libraries
rm "$PWD/../openocd-install/mingw$BITNESS/scripts/target/1986*.cfg"

0 comments on commit 54ad547

Please sign in to comment.