Skip to content

Commit

Permalink
chore: try to move nodejs artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 6, 2024
1 parent 0f3d875 commit 2e93827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/binding/NodeJS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ endif()

install(
TARGETS MaaNode
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)
RUNTIME DESTINATION binding/NodeJS/bin
LIBRARY DESTINATION binding/NodeJS/bin
ARCHIVE DESTINATION binding/NodeJS/lib)

# if(WIN32) add_custom_command( TARGET MaaNode POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${MaaDlls}
# $<TARGET_FILE_DIR:MaaNode> COMMAND_EXPAND_LISTS) endif()
2 changes: 1 addition & 1 deletion test/nodejs/inject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ declare module globalThis {
let MaaAPI: any
}

globalThis.MaaAPI = require('../../install/bin/MaaNode.node')
globalThis.MaaAPI = require('../../install/binding/NodeJS/bin/MaaNode.node')

0 comments on commit 2e93827

Please sign in to comment.