node-sword-interface 1.0.36 → 1.0.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -31,7 +31,7 @@ fi
31
31
 
32
32
  # CLONE SWORD
33
33
  git clone https://github.com/ezra-bible-app/crosswire-sword-mirror sword
34
- git -C sword checkout 1.9.0-2025-02-24
34
+ git -C sword checkout 1.9.0-2025-03-03
35
35
  patch --batch --forward -d sword -p 0 < patch/sword_globconf.patch
36
36
 
37
37
  # PATCHES
@@ -45,6 +45,8 @@ esac
45
45
  # BUILD
46
46
  mkdir -p sword_build
47
47
 
48
+ SWORD_BUILD_TYPE="Release"
49
+
48
50
  if [ "$1" = "--android" ] ; then
49
51
  git clone https://github.com/karlkleinpaste/biblesync.git
50
52
  git -C biblesync checkout 2.1.0
@@ -67,7 +69,7 @@ if [ "$1" = "--android" ] ; then
67
69
  cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 \
68
70
  -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
69
71
  -DANDROID_NDK=$ANDROID_NDK_HOME \
70
- -DCMAKE_BUILD_TYPE=Release \
72
+ -DCMAKE_BUILD_TYPE=$SWORD_BUILD_TYPE \
71
73
  -DANDROID_ABI="$ANDROID_ABI" \
72
74
  -DNODYNCAST=1 \
73
75
  ../sword
@@ -75,7 +77,8 @@ else
75
77
  # macOS & Linux
76
78
 
77
79
  cd sword_build
78
- cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 -DCMAKE_BUILD_TYPE=Debug \
80
+ cmake -DLIBSWORD_LIBRARY_TYPE=Static -DCMAKE_CXX_STANDARD=11 \
81
+ -DCMAKE_BUILD_TYPE=$SWORD_BUILD_TYPE \
79
82
  -DCMAKE_DISABLE_FIND_PACKAGE_ICU=TRUE \
80
83
  ../sword
81
84
  fi
@@ -34,7 +34,7 @@ $headers = @{}
34
34
  $github_token = $env:GITHUB_TOKEN
35
35
 
36
36
  # --- Set the uri for the release
37
- $URI = "https://api.github.com/repos/ezra-bible-app/sword-build-win32/releases/tags/v1.9.0-2025-02-24"
37
+ $URI = "https://api.github.com/repos/ezra-bible-app/sword-build-win32/releases/tags/v1.9.0-2025-03-03"
38
38
 
39
39
  if ($Env:CI -eq "true") {
40
40
  Write-Host "GitHub actions build ... using GITHUB_TOKEN for authentication!"
@@ -983,11 +983,11 @@ Napi::Value NodeSwordInterface::getSwordVersion(const Napi::CallbackInfo& info)
983
983
  Napi::HandleScope scope(env);
984
984
 
985
985
  #if defined(__ANDROID__)
986
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
986
+ string version = "1.9.0-2025-03-03";
987
987
  #elif defined(__linux__) || defined(__APPLE__)
988
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
988
+ string version = "1.9.0-2025-03-03";
989
989
  #elif _WIN32
990
- string version = "1.9.0-1460f91 (SVN Rev. 3873)";
990
+ string version = "1.9.0-2025-03-03";
991
991
  #endif
992
992
 
993
993
  Napi::String swVersion = Napi::String::New(env, version);