node-sword-interface 1.0.62 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/binding.gyp CHANGED
@@ -71,7 +71,6 @@
71
71
  },
72
72
  {
73
73
  "target_name": "node_sword_interface",
74
- "type": "shared_library",
75
74
  "cflags!": [ "-fno-exceptions" ],
76
75
  "cflags_cc!": [ "-fno-exceptions -std=c++11 -pthread" ],
77
76
  "sources": [
@@ -96,6 +95,7 @@
96
95
  ],
97
96
  "conditions":[
98
97
  ["is_ios==1", {
98
+ "type": "shared_library",
99
99
  'include_dirs': [
100
100
  "<(module_root_dir)/src/sword_backend",
101
101
  "<!@(node -p \"require('node-addon-api').include\")",
@@ -217,5 +217,18 @@
217
217
  ]
218
218
  }]
219
219
  ]
220
+ },
221
+ {
222
+ "target_name": "cleanup",
223
+ "type": "none",
224
+ "dependencies": [ "node_sword_interface" ],
225
+ "actions": [
226
+ {
227
+ "action_name": "clean_build_artifacts",
228
+ "inputs": [],
229
+ "outputs": ["<(PRODUCT_DIR)/cleanup.stamp"],
230
+ "action": [ "sh", "scripts/cleanup_build_artifacts.sh", "<(PRODUCT_DIR)/cleanup.stamp" ]
231
+ }
232
+ ]
220
233
  }]
221
234
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -18,7 +18,8 @@
18
18
  "pub": "rm -rf build node_modules sword sword_build test && npm publish ./",
19
19
  "deploy": "scripts/deploy_local.sh",
20
20
  "postinstall": "node scripts/postinstall.js",
21
- "test": "jest"
21
+ "test": "jest",
22
+ "release": "./scripts/release.sh"
22
23
  },
23
24
  "author": "Tobias Klein",
24
25
  "license": "GPL-2.0+",
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ rm -rf sword sword_build
3
+ touch "$1"
@@ -58,4 +58,7 @@ PLIST_EOF
58
58
  # Sign the framework (ad-hoc)
59
59
  /usr/bin/codesign --force --sign - --timestamp=none "${FRAMEWORK_DIR}"
60
60
 
61
+ # Remove the source binary
62
+ rm "${BINARY_SOURCE}"
63
+
61
64
  echo "Framework created successfully."
@@ -0,0 +1,11 @@
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ # Increment the patch version (creates commit and tag)
5
+ npm version patch
6
+
7
+ # Push the changes and the tag
8
+ git push --follow-tags
9
+
10
+ # Run the publish script
11
+ npm run pub