Skip to content

Commit

Permalink
include webgpu.yml on packaging (#435)
Browse files Browse the repository at this point in the history
* Add webgpu.yml to distribution directory

Included webgpu.yml file in the distribution process to ensure specifications are packaged alongside other required files. This change guarantees that all necessary resources are available during deployment and usage.

* Create `specifications` directory in archive stage

Added a command in the Makefile to create the `specifications` directory during the archive preparation phase. This ensures the directory is available for subsequent steps that may require it.

* Refactor directory structure for archive contents

Renamed `specifications` directory to `wgpu-native-meta` within archive structure. Updated paths for relevant files to reflect this change for better organization and clarity.
  • Loading branch information
ygdrasil-io authored Oct 9, 2024
1 parent f8b5cf5 commit 716b62c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ package: lib-native lib-native-release
LIBDIR=$(TARGET_DIR)/$$RELEASE; \
rm -r -f dist/$$ARCHIVEDIR; \
rm -f dist/$$ARCHIVEFILE; \
mkdir -p dist/$$ARCHIVEDIR/wgpu-native-meta; \
mkdir -p dist/$$ARCHIVEDIR/include/webgpu; \
mkdir -p dist/$$ARCHIVEDIR/lib; \
cp ./dist/wgpu-native-git-tag dist/$$ARCHIVEDIR; \
cp ./dist/wgpu-native-git-tag dist/$$ARCHIVEDIR/wgpu-native-meta; \
cp ./ffi/webgpu-headers/webgpu.yml dist/$$ARCHIVEDIR/wgpu-native-meta; \
cp ./ffi/webgpu-headers/webgpu.h dist/$$ARCHIVEDIR/include/webgpu; \
cp ./ffi/wgpu.h dist/$$ARCHIVEDIR/include/webgpu; \
if [ $(OS_NAME) = linux ]; then \
Expand Down

0 comments on commit 716b62c

Please sign in to comment.