koffi 2.5.6 → 2.5.8
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/CHANGELOG.md +14 -3
- package/build/{2.5.6/koffi_darwin_arm64 → 2.5.8/darwin_arm64}/koffi.node +0 -0
- package/build/{2.5.6/koffi_darwin_x64 → 2.5.8/darwin_x64}/koffi.node +0 -0
- package/build/2.5.8/freebsd_arm64/koffi.node +0 -0
- package/build/2.5.8/freebsd_ia32/koffi.node +0 -0
- package/build/{2.5.6/koffi_freebsd_x64 → 2.5.8/freebsd_x64}/koffi.node +0 -0
- package/build/2.5.8/linux_arm32hf/koffi.node +0 -0
- package/build/2.5.8/linux_arm64/koffi.node +0 -0
- package/build/2.5.8/linux_ia32/koffi.node +0 -0
- package/build/2.5.8/linux_riscv64hf64/koffi.node +0 -0
- package/build/{2.5.6/koffi_linux_x64 → 2.5.8/linux_x64}/koffi.node +0 -0
- package/build/2.5.8/openbsd_ia32/koffi.node +0 -0
- package/build/{2.5.6/koffi_openbsd_x64 → 2.5.8/openbsd_x64}/koffi.node +0 -0
- package/build/2.5.8/win32_arm64/koffi.node +0 -0
- package/build/{2.5.6/koffi_win32_ia32 → 2.5.8/win32_ia32}/koffi.node +0 -0
- package/build/{2.5.6/koffi_win32_x64 → 2.5.8/win32_x64}/koffi.node +0 -0
- package/doc/conf.py +13 -6
- package/doc/contribute.md +2 -2
- package/doc/pyproject.toml +1 -1
- package/doc/start.md +44 -3
- package/doc/static/custom.css +41 -1
- package/doc/static/node_c.webp +0 -0
- package/doc/static/opensans/LICENSE.txt +202 -0
- package/doc/static/opensans/OpenSans.css +39 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Bold.woff +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Bold.woff2 +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_BoldItalic.woff +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_BoldItalic.woff2 +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Italic.woff +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Italic.woff2 +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Regular.woff +0 -0
- package/doc/static/opensans/OpenSans_v17_Latin_Regular.woff2 +0 -0
- package/doc/templates/badges.html +1 -1
- package/doc/templates/logo.html +3 -0
- package/package.json +4 -4
- package/src/core/libcc/libcc.cc +67 -13
- package/src/core/libcc/libcc.hh +24 -13
- package/src/index.js +15 -3
- package/build/2.5.6/koffi_freebsd_arm64/koffi.node +0 -0
- package/build/2.5.6/koffi_freebsd_ia32/koffi.node +0 -0
- package/build/2.5.6/koffi_linux_arm32hf/koffi.node +0 -0
- package/build/2.5.6/koffi_linux_arm64/koffi.node +0 -0
- package/build/2.5.6/koffi_linux_ia32/koffi.node +0 -0
- package/build/2.5.6/koffi_linux_riscv64hf64/koffi.node +0 -0
- package/build/2.5.6/koffi_openbsd_ia32/koffi.node +0 -0
- package/build/2.5.6/koffi_win32_arm64/koffi.node +0 -0
- /package/build/{2.5.6/koffi_win32_arm64 → 2.5.8/win32_arm64}/koffi.exp +0 -0
- /package/build/{2.5.6/koffi_win32_arm64 → 2.5.8/win32_arm64}/koffi.lib +0 -0
- /package/build/{2.5.6/koffi_win32_ia32 → 2.5.8/win32_ia32}/koffi.exp +0 -0
- /package/build/{2.5.6/koffi_win32_ia32 → 2.5.8/win32_ia32}/koffi.lib +0 -0
- /package/build/{2.5.6/koffi_win32_x64 → 2.5.8/win32_x64}/koffi.exp +0 -0
- /package/build/{2.5.6/koffi_win32_x64 → 2.5.8/win32_x64}/koffi.lib +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
### Koffi 2.5
|
|
6
6
|
|
|
7
|
+
#### Koffi 2.5.8
|
|
8
|
+
|
|
9
|
+
**Main changes:**
|
|
10
|
+
|
|
11
|
+
- Add more search paths for native Koffi modules
|
|
12
|
+
- Add section [about bundling](start.md#bundling-koffi) to documentation
|
|
13
|
+
|
|
14
|
+
#### Koffi 2.5.7
|
|
15
|
+
|
|
16
|
+
**Main changes:**
|
|
17
|
+
|
|
18
|
+
- Point package to new repository
|
|
19
|
+
|
|
7
20
|
#### Koffi 2.5.6
|
|
8
21
|
|
|
9
22
|
**Main changes:**
|
|
@@ -571,11 +584,9 @@ This entry documents changes since version 1.1.0.
|
|
|
571
584
|
|
|
572
585
|
The following features and improvements are planned, not necessarily in that order:
|
|
573
586
|
|
|
574
|
-
- Optimize passing of structs and arrays (
|
|
587
|
+
- Optimize passing of structs and arrays (with auto-generated JS)
|
|
575
588
|
- Automate Windows/AArch64 (qemu) and macOS/AArch64 (how? ... thanks Apple) tests
|
|
576
589
|
- Create a real-world example, using several libraries (Raylib, SQLite, libsodium) to illustrate various C API styles
|
|
577
590
|
- Add simple struct type parser
|
|
578
|
-
- Add more ways to manually encode and decode various types to and from byte arrays
|
|
579
|
-
- Add support for unions
|
|
580
591
|
- Port Koffi to PowerPC (POWER9+) ABI
|
|
581
592
|
- Fix assembly unwind and CFI directives for better debugging experience
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/doc/conf.py
CHANGED
|
@@ -56,22 +56,29 @@ html_static_path = ['static']
|
|
|
56
56
|
|
|
57
57
|
html_theme_options = {
|
|
58
58
|
'light_css_variables': {
|
|
59
|
-
'
|
|
60
|
-
'color-
|
|
59
|
+
'font-stack': 'Open Sans',
|
|
60
|
+
'color-content-foreground': '#383838',
|
|
61
|
+
'color-brand-primary': '#383838',
|
|
62
|
+
'color-brand-content': '#e97713'
|
|
61
63
|
},
|
|
62
64
|
'dark_css_variables': {
|
|
63
|
-
'
|
|
64
|
-
'color-
|
|
65
|
+
'font-stack': 'Open Sans',
|
|
66
|
+
'color-content-foreground': '#ffffffdd',
|
|
67
|
+
'color-brand-primary': '#ffffffdd',
|
|
68
|
+
'color-brand-content': '#e97713'
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
html_link_suffix = ''
|
|
69
73
|
|
|
70
|
-
html_css_files = [
|
|
74
|
+
html_css_files = [
|
|
75
|
+
'opensans/OpenSans.css',
|
|
76
|
+
'custom.css'
|
|
77
|
+
]
|
|
71
78
|
|
|
72
79
|
html_sidebars = {
|
|
73
80
|
"**": [
|
|
74
|
-
"
|
|
81
|
+
"logo.html",
|
|
75
82
|
"sidebar/search.html",
|
|
76
83
|
"sidebar/scroll-start.html",
|
|
77
84
|
"sidebar/navigation.html",
|
package/doc/contribute.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Bugs and feature requests
|
|
4
4
|
|
|
5
|
-
Use the official repository
|
|
5
|
+
Use the official repository for bugs, ideas and features requests: https://github.com/Koromix/koffi
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Please note that the source code is not in this repository, instead it lives in a monorepo: https://github.com/Koromix/rygel/ (in the *src/koffi* subdirectory).
|
|
8
8
|
|
|
9
9
|
## Build from source
|
|
10
10
|
|
package/doc/pyproject.toml
CHANGED
package/doc/start.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Get started
|
|
2
2
|
|
|
3
3
|
## Install Koffi
|
|
4
4
|
|
|
@@ -18,12 +18,14 @@ const koffi = require('koffi');
|
|
|
18
18
|
import koffi from 'koffi';
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
## Simple examples
|
|
22
|
+
|
|
21
23
|
Below you can find three examples:
|
|
22
24
|
|
|
23
25
|
* The first one runs on Linux. The functions are declared with the C-like prototype language.
|
|
24
26
|
* The second one runs on Windows, and uses the node-ffi like syntax to declare functions.
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
### For Linux
|
|
27
29
|
|
|
28
30
|
This is a small example for Linux systems, which uses `gettimeofday()`, `localtime_r()` and `printf()` to print the current time.
|
|
29
31
|
|
|
@@ -74,7 +76,7 @@ printf('Hello World!\n');
|
|
|
74
76
|
printf('Local time: %02d:%02d:%02d\n', 'int', now.tm_hour, 'int', now.tm_min, 'int', now.tm_sec);
|
|
75
77
|
```
|
|
76
78
|
|
|
77
|
-
|
|
79
|
+
### For Windows
|
|
78
80
|
|
|
79
81
|
This is a small example targeting the Win32 API, using `MessageBox()` to show a *Hello World!* message to the user.
|
|
80
82
|
|
|
@@ -104,3 +106,42 @@ let ret = MessageBoxA(null, 'Do you want another message box?', 'Koffi', MB_YESN
|
|
|
104
106
|
if (ret == IDYES)
|
|
105
107
|
MessageBoxW(null, 'Hello World!', 'Koffi', MB_ICONINFORMATION);
|
|
106
108
|
```
|
|
109
|
+
|
|
110
|
+
## Bundling Koffi
|
|
111
|
+
|
|
112
|
+
*Improved in Koffi 2.5.8*
|
|
113
|
+
|
|
114
|
+
Koffi uses native modules to work. The NPM package contains binaries for various platforms and architectures, and the appropriate module is selected at runtime.
|
|
115
|
+
|
|
116
|
+
If you use a bundler, you must make sure that the {{ "`node_modules/koffi/build/" ~ stable ~ "`" }} directory is available in your bundled script.
|
|
117
|
+
|
|
118
|
+
Here is an example that would work:
|
|
119
|
+
|
|
120
|
+
```{eval-rst}
|
|
121
|
+
.. parsed-literal::
|
|
122
|
+
koffi/
|
|
123
|
+
|version|/
|
|
124
|
+
win32_x64/
|
|
125
|
+
koffi.node
|
|
126
|
+
linux_x64/
|
|
127
|
+
koffi.node
|
|
128
|
+
...
|
|
129
|
+
MyBundle.js
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
When running in Electron, Koffi will also try to find the native module in `process.resourcesPath`. For an Electron app you could do something like this
|
|
133
|
+
|
|
134
|
+
```{eval-rst}
|
|
135
|
+
.. parsed-literal::
|
|
136
|
+
locales/
|
|
137
|
+
resources/
|
|
138
|
+
koffi/
|
|
139
|
+
|version|/
|
|
140
|
+
darwin_arm64/
|
|
141
|
+
koffi.node
|
|
142
|
+
darwin_x64/
|
|
143
|
+
koffi.node
|
|
144
|
+
MyApp.exe
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
You must configure your bundler and/or your packager to make this work.
|
package/doc/static/custom.css
CHANGED
|
@@ -23,8 +23,48 @@ aside.footnote {
|
|
|
23
23
|
display: flex;
|
|
24
24
|
margin-top: 6px;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
26
|
aside.footnote > p {
|
|
28
27
|
margin: 0;
|
|
29
28
|
margin-left: 1rem;
|
|
30
29
|
}
|
|
30
|
+
|
|
31
|
+
.toctree-l1 > a {
|
|
32
|
+
font-size: 1.1em;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
h1 {
|
|
36
|
+
font-size: 2rem;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
font-weight: normal;
|
|
39
|
+
margin-bottom: 1.2rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h2 {
|
|
43
|
+
display: table;
|
|
44
|
+
margin-left: 0;
|
|
45
|
+
margin-bottom: 1.2rem;
|
|
46
|
+
padding: 3px 12px 3px 30px;
|
|
47
|
+
background: var(--color-brand-primary) !important;
|
|
48
|
+
border-right: 32px solid var(--color-background-primary);
|
|
49
|
+
border-radius: 0;
|
|
50
|
+
font-size: 1.6rem;
|
|
51
|
+
font-weight: normal;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
color: var(--color-background-primary) !important;
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
h2 > a {
|
|
57
|
+
filter: none !important;
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: calc(100% - 32px);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
h3 {
|
|
63
|
+
font-size: 1.4rem;
|
|
64
|
+
font-weight: normal;
|
|
65
|
+
margin-bottom: 1.2rem;
|
|
66
|
+
font-style: italic;
|
|
67
|
+
padding-left: 50px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:target > h1, :target > h3 { background: none !important; }
|
|
Binary file
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* open-sans-regular - latin */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Open Sans';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
src: local('Open Sans Regular'), local('OpenSans-Regular'),
|
|
7
|
+
url('OpenSans_v17_Latin_Regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
8
|
+
url('OpenSans_v17_Latin_Regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* open-sans-italic - latin */
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'Open Sans';
|
|
14
|
+
font-style: italic;
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
src: local('Open Sans Italic'), local('OpenSans-Italic'),
|
|
17
|
+
url('OpenSans_v17_Latin_Italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
18
|
+
url('OpenSans_v17_Latin_Italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* open-sans-700 - latin */
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: 'Open Sans';
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
src: local('Open Sans Bold'), local('OpenSans-Bold'),
|
|
27
|
+
url('OpenSans_v17_Latin_Bold.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
28
|
+
url('OpenSans_v17_Latin_Bold.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* open-sans-700italic - latin */
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: 'Open Sans';
|
|
34
|
+
font-style: italic;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
|
|
37
|
+
url('OpenSans_v17_Latin_BoldItalic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
|
|
38
|
+
url('OpenSans_v17_Latin_BoldItalic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
39
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div style="text-align: center; margin-top: 2em;">
|
|
2
2
|
<a href="https://www.npmjs.com/package/koffi"><img src="https://img.shields.io/badge/NPM-{{ stable }}-brightgreen" alt="NPM"/></a>
|
|
3
|
-
<a href="https://github.com/Koromix/
|
|
3
|
+
<a href="https://github.com/Koromix/koffi"><img src="https://img.shields.io/badge/GitHub-Koffi-ff6600" alt="GitHub"/></a>
|
|
4
4
|
|
|
5
5
|
<br><br>
|
|
6
6
|
<iframe src="https://github.com/sponsors/Koromix/button" title="Sponsor Koromix" height="35" width="116" style="border: 0;"></iframe>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koffi",
|
|
3
|
-
"version": "2.5.
|
|
4
|
-
"stable": "2.5.
|
|
3
|
+
"version": "2.5.8",
|
|
4
|
+
"stable": "2.5.8",
|
|
5
5
|
"description": "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"foreign",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/Koromix/
|
|
17
|
+
"url": "https://github.com/Koromix/koffi"
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://koffi.dev/",
|
|
20
20
|
"author": "Niels Martignène <niels.martignene@protonmail.com>",
|
|
@@ -27,6 +27,6 @@
|
|
|
27
27
|
"cnoke": {
|
|
28
28
|
"napi": 8,
|
|
29
29
|
"require": "./src/index.js",
|
|
30
|
-
"output": "build/{{version}}/
|
|
30
|
+
"output": "build/{{version}}/{{platform}}_{{arch}}"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/core/libcc/libcc.cc
CHANGED
|
@@ -3804,17 +3804,29 @@ struct PendingIO {
|
|
|
3804
3804
|
}
|
|
3805
3805
|
};
|
|
3806
3806
|
|
|
3807
|
-
bool ExecuteCommandLine(const char *cmd_line,
|
|
3807
|
+
bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
3808
|
+
FunctionRef<Span<const uint8_t>()> in_func,
|
|
3808
3809
|
FunctionRef<void(Span<uint8_t> buf)> out_func, int *out_code)
|
|
3809
3810
|
{
|
|
3810
3811
|
STARTUPINFOW si = {};
|
|
3811
3812
|
|
|
3813
|
+
BlockAllocator temp_alloc;
|
|
3814
|
+
|
|
3812
3815
|
// Convert command line
|
|
3813
|
-
Span<wchar_t> cmd_line_w = AllocateSpan<wchar_t>(
|
|
3814
|
-
RG_DEFER { ReleaseSpan(nullptr, cmd_line_w); };
|
|
3816
|
+
Span<wchar_t> cmd_line_w = AllocateSpan<wchar_t>(&temp_alloc, 2 * strlen(cmd_line) + 1);
|
|
3815
3817
|
if (ConvertUtf8ToWin32Wide(cmd_line, cmd_line_w) < 0)
|
|
3816
3818
|
return false;
|
|
3817
3819
|
|
|
3820
|
+
// Convert work directory
|
|
3821
|
+
Span<wchar_t> work_dir_w;
|
|
3822
|
+
if (work_dir) {
|
|
3823
|
+
work_dir_w = AllocateSpan<wchar_t>(&temp_alloc, 2 * strlen(work_dir) + 1);
|
|
3824
|
+
if (ConvertUtf8ToWin32Wide(work_dir, work_dir_w) < 0)
|
|
3825
|
+
return false;
|
|
3826
|
+
} else {
|
|
3827
|
+
work_dir_w = {};
|
|
3828
|
+
}
|
|
3829
|
+
|
|
3818
3830
|
// Detect CTRL+C and CTRL+BREAK events
|
|
3819
3831
|
if (!InitConsoleCtrlHandler())
|
|
3820
3832
|
return false;
|
|
@@ -3887,7 +3899,7 @@ bool ExecuteCommandLine(const char *cmd_line, FunctionRef<Span<const uint8_t>()>
|
|
|
3887
3899
|
|
|
3888
3900
|
PROCESS_INFORMATION pi = {};
|
|
3889
3901
|
if (!CreateProcessW(nullptr, cmd_line_w.ptr, nullptr, nullptr, TRUE, CREATE_NEW_PROCESS_GROUP,
|
|
3890
|
-
nullptr,
|
|
3902
|
+
nullptr, work_dir_w.ptr, &si, &pi)) {
|
|
3891
3903
|
LogError("Failed to start process: %1", GetWin32ErrorString());
|
|
3892
3904
|
return false;
|
|
3893
3905
|
}
|
|
@@ -4096,7 +4108,8 @@ void CloseDescriptorSafe(int *fd_ptr)
|
|
|
4096
4108
|
*fd_ptr = -1;
|
|
4097
4109
|
}
|
|
4098
4110
|
|
|
4099
|
-
bool ExecuteCommandLine(const char *cmd_line,
|
|
4111
|
+
bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4112
|
+
FunctionRef<Span<const uint8_t>()> in_func,
|
|
4100
4113
|
FunctionRef<void(Span<uint8_t> buf)> out_func, int *out_code)
|
|
4101
4114
|
{
|
|
4102
4115
|
// Create read pipes
|
|
@@ -4169,9 +4182,14 @@ bool ExecuteCommandLine(const char *cmd_line, FunctionRef<Span<const uint8_t>()>
|
|
|
4169
4182
|
return false;
|
|
4170
4183
|
}
|
|
4171
4184
|
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4185
|
+
if (work_dir) {
|
|
4186
|
+
const char *argv[] = {"env", "-C", work_dir, "sh", "-c", cmd_line, nullptr };
|
|
4187
|
+
errno = posix_spawn(&pid, "/bin/env", &file_actions, nullptr, const_cast<char **>(argv), environ);
|
|
4188
|
+
} else {
|
|
4189
|
+
const char *argv[] = {"sh", "-c", cmd_line, nullptr};
|
|
4190
|
+
errno = posix_spawn(&pid, "/bin/sh", &file_actions, nullptr, const_cast<char **>(argv), environ);
|
|
4191
|
+
}
|
|
4192
|
+
if (errno) {
|
|
4175
4193
|
LogError("Failed to start process: %1", strerror(errno));
|
|
4176
4194
|
return false;
|
|
4177
4195
|
}
|
|
@@ -4311,7 +4329,8 @@ bool ExecuteCommandLine(const char *cmd_line, FunctionRef<Span<const uint8_t>()>
|
|
|
4311
4329
|
|
|
4312
4330
|
#endif
|
|
4313
4331
|
|
|
4314
|
-
bool ExecuteCommandLine(const char *cmd_line,
|
|
4332
|
+
bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4333
|
+
Span<const uint8_t> in_buf, Size max_len,
|
|
4315
4334
|
HeapArray<uint8_t> *out_buf, int *out_code)
|
|
4316
4335
|
{
|
|
4317
4336
|
Size start_len = out_buf->len;
|
|
@@ -4333,8 +4352,8 @@ bool ExecuteCommandLine(const char *cmd_line, Span<const uint8_t> in_buf, Size m
|
|
|
4333
4352
|
// Don't f*ck up the log
|
|
4334
4353
|
bool warned = false;
|
|
4335
4354
|
|
|
4336
|
-
bool success = ExecuteCommandLine(cmd_line, [&]() { return in_buf; },
|
|
4337
|
-
|
|
4355
|
+
bool success = ExecuteCommandLine(cmd_line, work_dir, [&]() { return in_buf; },
|
|
4356
|
+
[&](Span<uint8_t> buf) {
|
|
4338
4357
|
if (out_buf->len - start_len <= max_len - buf.len) {
|
|
4339
4358
|
out_buf->Append(buf);
|
|
4340
4359
|
} else if (!warned) {
|
|
@@ -4349,6 +4368,40 @@ bool ExecuteCommandLine(const char *cmd_line, Span<const uint8_t> in_buf, Size m
|
|
|
4349
4368
|
return true;
|
|
4350
4369
|
}
|
|
4351
4370
|
|
|
4371
|
+
Size ReadCommandOutput(const char *cmd_line, Span<char> out_output)
|
|
4372
|
+
{
|
|
4373
|
+
Size total_len = 0;
|
|
4374
|
+
const auto write = [&](Span<uint8_t> buf) {
|
|
4375
|
+
Size copy = std::min(out_output.len - total_len, buf.len);
|
|
4376
|
+
|
|
4377
|
+
memcpy_safe(out_output.ptr + total_len, buf.ptr, copy);
|
|
4378
|
+
total_len += copy;
|
|
4379
|
+
};
|
|
4380
|
+
|
|
4381
|
+
int exit_code;
|
|
4382
|
+
if (!ExecuteCommandLine(cmd_line, nullptr, MakeSpan((const uint8_t *)nullptr, 0), write, &exit_code))
|
|
4383
|
+
return -1;
|
|
4384
|
+
if (exit_code) {
|
|
4385
|
+
LogDebug("Command '%1 failed (exit code: %2)", cmd_line, exit_code);
|
|
4386
|
+
return -1;
|
|
4387
|
+
}
|
|
4388
|
+
|
|
4389
|
+
return total_len;
|
|
4390
|
+
}
|
|
4391
|
+
|
|
4392
|
+
bool ReadCommandOutput(const char *cmd_line, HeapArray<char> *out_output)
|
|
4393
|
+
{
|
|
4394
|
+
int exit_code;
|
|
4395
|
+
if (!ExecuteCommandLine(cmd_line, nullptr, {}, Kilobytes(4), out_output, &exit_code))
|
|
4396
|
+
return false;
|
|
4397
|
+
if (exit_code) {
|
|
4398
|
+
LogDebug("Command '%1 failed (exit code: %2)", cmd_line, exit_code);
|
|
4399
|
+
return false;
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
return true;
|
|
4403
|
+
}
|
|
4404
|
+
|
|
4352
4405
|
#ifdef _WIN32
|
|
4353
4406
|
|
|
4354
4407
|
static HANDLE wait_msg_event = CreateEvent(nullptr, TRUE, FALSE, nullptr);
|
|
@@ -5114,7 +5167,9 @@ restart:
|
|
|
5114
5167
|
int GetRandomIntSafe(int min, int max)
|
|
5115
5168
|
{
|
|
5116
5169
|
int range = max - min;
|
|
5117
|
-
|
|
5170
|
+
|
|
5171
|
+
if (range < 2) [[unlikely]]
|
|
5172
|
+
return min;
|
|
5118
5173
|
|
|
5119
5174
|
unsigned int treshold = (UINT_MAX - UINT_MAX % range);
|
|
5120
5175
|
|
|
@@ -6882,7 +6937,6 @@ bool ReloadAssets()
|
|
|
6882
6937
|
asset_copy.data = AllocateSpan<uint8_t>(&assets_alloc, asset.data.len);
|
|
6883
6938
|
memcpy_safe((void *)asset_copy.data.ptr, asset.data.ptr, (size_t)asset.data.len);
|
|
6884
6939
|
asset_copy.compression_type = asset.compression_type;
|
|
6885
|
-
asset_copy.source_map = DuplicateString(asset.source_map, &assets_alloc).ptr;
|
|
6886
6940
|
|
|
6887
6941
|
assets.Append(asset_copy);
|
|
6888
6942
|
}
|
package/src/core/libcc/libcc.hh
CHANGED
|
@@ -4022,14 +4022,18 @@ bool CreatePipe(int pfd[2]);
|
|
|
4022
4022
|
void CloseDescriptorSafe(int *fd_ptr);
|
|
4023
4023
|
#endif
|
|
4024
4024
|
|
|
4025
|
-
bool ExecuteCommandLine(const char *cmd_line,
|
|
4025
|
+
bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4026
|
+
FunctionRef<Span<const uint8_t>()> in_func,
|
|
4026
4027
|
FunctionRef<void(Span<uint8_t> buf)> out_func, int *out_code);
|
|
4027
|
-
bool ExecuteCommandLine(const char *cmd_line,
|
|
4028
|
+
bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4029
|
+
Span<const uint8_t> in_buf, Size max_len,
|
|
4028
4030
|
HeapArray<uint8_t> *out_buf, int *out_code);
|
|
4029
4031
|
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4032
|
+
// Simple variants
|
|
4033
|
+
static inline bool ExecuteCommandLine(const char *cmd_line, const char *work_dir, int *out_code)
|
|
4034
|
+
{ return ExecuteCommandLine(cmd_line, work_dir, {}, {}, out_code); }
|
|
4035
|
+
static inline bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4036
|
+
Span<const uint8_t> in_buf,
|
|
4033
4037
|
FunctionRef<void(Span<uint8_t> buf)> out_func, int *out_code)
|
|
4034
4038
|
{
|
|
4035
4039
|
const auto read_once = [&]() {
|
|
@@ -4038,18 +4042,27 @@ static inline bool ExecuteCommandLine(const char *cmd_line, Span<const uint8_t>
|
|
|
4038
4042
|
return buf;
|
|
4039
4043
|
};
|
|
4040
4044
|
|
|
4041
|
-
return ExecuteCommandLine(cmd_line, read_once, out_func, out_code);
|
|
4045
|
+
return ExecuteCommandLine(cmd_line, work_dir, read_once, out_func, out_code);
|
|
4042
4046
|
}
|
|
4043
|
-
|
|
4047
|
+
|
|
4048
|
+
// Char variants
|
|
4049
|
+
static inline bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4050
|
+
Span<const char> in_buf,
|
|
4044
4051
|
FunctionRef<void(Span<char> buf)> out_func, int *out_code)
|
|
4045
4052
|
{
|
|
4046
4053
|
const auto write = [&](Span<uint8_t> buf) { out_func(buf.As<char>()); };
|
|
4047
|
-
return ExecuteCommandLine(cmd_line, in_buf.As<const uint8_t>(), write, out_code);
|
|
4054
|
+
return ExecuteCommandLine(cmd_line, work_dir, in_buf.As<const uint8_t>(), write, out_code);
|
|
4048
4055
|
}
|
|
4049
|
-
static inline bool ExecuteCommandLine(const char *cmd_line,
|
|
4056
|
+
static inline bool ExecuteCommandLine(const char *cmd_line, const char *work_dir,
|
|
4057
|
+
Span<const char> in_buf, Size max_len,
|
|
4050
4058
|
HeapArray<char> *out_buf, int *out_code)
|
|
4051
|
-
|
|
4052
|
-
|
|
4059
|
+
{
|
|
4060
|
+
return ExecuteCommandLine(cmd_line, work_dir, in_buf.As<const uint8_t>(), max_len,
|
|
4061
|
+
(HeapArray<uint8_t> *)out_buf, out_code);
|
|
4062
|
+
}
|
|
4063
|
+
|
|
4064
|
+
Size ReadCommandOutput(const char *cmd_line, Span<char> out_output);
|
|
4065
|
+
bool ReadCommandOutput(const char *cmd_line, HeapArray<char> *out_output);
|
|
4053
4066
|
|
|
4054
4067
|
void WaitDelay(int64_t delay);
|
|
4055
4068
|
|
|
@@ -4700,8 +4713,6 @@ struct AssetInfo {
|
|
|
4700
4713
|
CompressionType compression_type;
|
|
4701
4714
|
Span<const uint8_t> data;
|
|
4702
4715
|
|
|
4703
|
-
const char *source_map;
|
|
4704
|
-
|
|
4705
4716
|
RG_HASHTABLE_HANDLER(AssetInfo, name);
|
|
4706
4717
|
};
|
|
4707
4718
|
|
package/src/index.js
CHANGED
|
@@ -38,12 +38,24 @@ if (process.versions.napi == null || process.versions.napi < pkg.cnoke.napi) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
let arch = cnoke.determine_arch();
|
|
41
|
-
|
|
41
|
+
|
|
42
|
+
let filenames = [
|
|
43
|
+
__dirname + `/../build/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
44
|
+
__dirname + `/build/koffi/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
45
|
+
__dirname + `/koffi/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
46
|
+
__dirname + `/../build/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`,
|
|
47
|
+
__dirname + `/build/koffi/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`,
|
|
48
|
+
__dirname + `/koffi/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`
|
|
49
|
+
];
|
|
42
50
|
|
|
43
51
|
if (process.resourcesPath != null) {
|
|
44
52
|
filenames.push(
|
|
45
|
-
process.resourcesPath + `/
|
|
46
|
-
process.resourcesPath + `/build/${pkg.version}
|
|
53
|
+
process.resourcesPath + `/build/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
54
|
+
process.resourcesPath + `/build/koffi/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
55
|
+
process.resourcesPath + `/koffi/${pkg.version}/${process.platform}_${arch}/koffi.node`,
|
|
56
|
+
process.resourcesPath + `/build/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`,
|
|
57
|
+
process.resourcesPath + `/build/koffi/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`,
|
|
58
|
+
process.resourcesPath + `/koffi/${pkg.version}/koffi_${process.platform}_${arch}/koffi.node`
|
|
47
59
|
);
|
|
48
60
|
}
|
|
49
61
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|