Skip to content

Commit

Permalink
popd not always available
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Sep 4, 2024
1 parent b1a8018 commit 36b6b3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ endif

package: lib-native lib-native-release
mkdir -p dist
echo "Zipping the binaries ..."
echo "$(GIT_TAG_FULL)" > dist/wgpu-native-git-tag
for RELEASE in debug release; do \
ARCHIVEDIR=toarchive; \
Expand All @@ -66,13 +67,13 @@ package: lib-native lib-native-release
cp ./$$LIBDIR/wgpu_native.lib dist/$$ARCHIVEDIR/lib | true; \
cp ./$$LIBDIR/wgpu_native.dll.lib dist/$$ARCHIVEDIR/lib | true; \
cp ./$$LIBDIR/wgpu_native.pdb dist/$$ARCHIVEDIR/lib | true; \
pushd dist/$$ARCHIVEDIR; \
cd dist/$$ARCHIVEDIR; \
if [ $(OS_NAME) = windows ]; then \
7z a -tzip ../$$ARCHIVEFILE *; \
else \
zip -r ../$$ARCHIVEFILE *; \
fi; \
popd; \
cd ../..; \
done

clean:
Expand Down

0 comments on commit 36b6b3c

Please sign in to comment.