dfcode 1.0.7 → 1.0.9
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/bin/dfcode +4 -4
- package/package.json +1 -1
package/bin/dfcode
CHANGED
|
@@ -17,7 +17,7 @@ function run(target) {
|
|
|
17
17
|
process.exit(code)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const envPath = process.env.
|
|
20
|
+
const envPath = process.env.DFCODE_BIN_PATH
|
|
21
21
|
if (envPath) {
|
|
22
22
|
run(envPath)
|
|
23
23
|
}
|
|
@@ -44,8 +44,8 @@ let arch = archMap[os.arch()]
|
|
|
44
44
|
if (!arch) {
|
|
45
45
|
arch = os.arch()
|
|
46
46
|
}
|
|
47
|
-
const base = "
|
|
48
|
-
const binary = platform === "windows" ? "
|
|
47
|
+
const base = "dfcode-" + platform + "-" + arch
|
|
48
|
+
const binary = platform === "windows" ? "dfcode.exe" : "dfcode"
|
|
49
49
|
|
|
50
50
|
function findBinary(startDir) {
|
|
51
51
|
let current = startDir
|
|
@@ -74,7 +74,7 @@ function findBinary(startDir) {
|
|
|
74
74
|
const resolved = findBinary(scriptDir)
|
|
75
75
|
if (!resolved) {
|
|
76
76
|
console.error(
|
|
77
|
-
'It seems that your package manager failed to install the right version of the
|
|
77
|
+
'It seems that your package manager failed to install the right version of the dfcode CLI for your platform. You can try manually installing the "' +
|
|
78
78
|
base +
|
|
79
79
|
'" package',
|
|
80
80
|
)
|