mirror of
https://github.com/koush/scrypted.git
synced 2026-06-20 16:40:30 +01:00
cloud: additional bin path fixes
This commit is contained in:
2
plugins/cloud/.vscode/settings.json
vendored
2
plugins/cloud/.vscode/settings.json
vendored
@@ -1,4 +1,4 @@
|
||||
|
||||
{
|
||||
"scrypted.debugHost": "127.0.0.1",
|
||||
"scrypted.debugHost": "koushik-ubuntu",
|
||||
}
|
||||
4
plugins/cloud/package-lock.json
generated
4
plugins/cloud/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/cloud",
|
||||
"version": "0.1.37",
|
||||
"version": "0.1.38",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/cloud",
|
||||
"version": "0.1.37",
|
||||
"version": "0.1.38",
|
||||
"dependencies": {
|
||||
"@eneris/push-receiver": "^3.1.4",
|
||||
"@scrypted/common": "file:../../common",
|
||||
|
||||
@@ -54,5 +54,5 @@
|
||||
"@types/nat-upnp": "^1.1.2",
|
||||
"@types/node": "^20.4.5"
|
||||
},
|
||||
"version": "0.1.37"
|
||||
"version": "0.1.38"
|
||||
}
|
||||
|
||||
@@ -800,8 +800,9 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
|
||||
const pluginVolume = process.env.SCRYPTED_PLUGIN_VOLUME;
|
||||
const version = 2;
|
||||
const cloudflareD = path.join(pluginVolume, 'cloudflare.d', `v${version}`, `${process.platform}-${process.arch}`);
|
||||
const bin = path.join(cloudflareD, cloudflared.bin);
|
||||
|
||||
if (!fs.existsSync(cloudflared.bin)) {
|
||||
if (!fs.existsSync(bin)) {
|
||||
for (let i = 0; i <= version; i++) {
|
||||
const cloudflareD = path.join(pluginVolume, 'cloudflare.d', `v${version}`);
|
||||
rmSync(cloudflareD, {
|
||||
@@ -809,7 +810,6 @@ class ScryptedCloud extends ScryptedDeviceBase implements OauthClient, Settings,
|
||||
recursive: true,
|
||||
});
|
||||
}
|
||||
const bin = path.join(cloudflareD, cloudflared.bin);
|
||||
if (process.platform === 'darwin' && process.arch === 'arm64') {
|
||||
const bin = path.join(cloudflareD, cloudflared.bin);
|
||||
mkdirSync(path.dirname(bin), {
|
||||
|
||||
Reference in New Issue
Block a user