rescript-relay 0.0.0-windows-3cc8bbb8 → 0.0.0-windows-ed1ca177
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
package/postinstall.js
CHANGED
|
@@ -105,15 +105,26 @@ function copyPlatformBinaries(platform) {
|
|
|
105
105
|
);
|
|
106
106
|
fs.chmodSync(path.join(__dirname, "ppx"), 0777);
|
|
107
107
|
|
|
108
|
+
// Windows seems to need an .exe file as well.
|
|
109
|
+
if (platform === "windows-latest") {
|
|
110
|
+
fs.copyFileSync(
|
|
111
|
+
path.join(__dirname, "ppx-" + platform),
|
|
112
|
+
path.join(__dirname, "ppx.exe")
|
|
113
|
+
);
|
|
114
|
+
fs.chmodSync(path.join(__dirname, "ppx.exe"), 0777);
|
|
115
|
+
}
|
|
116
|
+
|
|
108
117
|
/**
|
|
109
118
|
* Copy the Relay compiler
|
|
110
119
|
*/
|
|
111
120
|
|
|
121
|
+
var platformSuffix = getRelayCompilerPlatformSuffix();
|
|
122
|
+
|
|
112
123
|
fs.copyFileSync(
|
|
113
124
|
path.join(
|
|
114
125
|
__dirname,
|
|
115
|
-
"relay-compiler-" +
|
|
116
|
-
"relay"
|
|
126
|
+
"relay-compiler-" + platformSuffix,
|
|
127
|
+
platformSuffix === "win-x64" ? "relay.exe" : "relay"
|
|
117
128
|
),
|
|
118
129
|
path.join(__dirname, "rescript-relay-compiler.exe")
|
|
119
130
|
);
|
package/ppx-macos-latest
ADDED
|
Binary file
|
|
index 62d341b..3b98492 100644
|
|
|
Binary file
|
|
Binary file
|