Skip to content

Commit

Permalink
chore: platform dependant process
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanVicens committed Jan 17, 2024
1 parent e936ff6 commit e014813
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 29 deletions.
1 change: 0 additions & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"reload-virtual-drive": "yarn add --ignore-scripts ../../../node-win && npm run link-modules"
},
"dependencies": {
"@gcas/fuse": "^2.4.2",
"@rudderstack/rudder-sdk-node": "^1.1.4",
"better-sqlite3": "^8.3.0",
"typeorm": "^0.3.16",
Expand Down
27 changes: 1 addition & 26 deletions release/app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@
enabled "2.0.x"
kuler "^2.0.0"

"@gcas/fuse@^2.4.2":
version "2.4.2"
resolved "https://registry.yarnpkg.com/@gcas/fuse/-/fuse-2.4.2.tgz#149bd97ec8a60988f4868bacd719c7e8a1c41876"
integrity sha512-l/vVd2eXAuzKG4QilN1VRa8za5glndSK+jxcLrzMiXRrvbbCJthwqcBZUE3VzoRL0T/l7197tW+MKR9YeQCtZQ==
dependencies:
nanoresource "^1.3.0"
napi-macros "^2.0.0"

"@ioredis/commands@^1.1.1":
version "1.2.0"
resolved "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz"
Expand Down Expand Up @@ -622,12 +614,7 @@ minimatch@^5.0.1:
dependencies:
brace-expansion "^2.0.1"

minimist@^1.2.0, minimist@^1.2.3:
version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==

minimist@^1.2.6:
minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.6:
version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
Expand Down Expand Up @@ -682,23 +669,11 @@ mz@^2.4.0:
object-assign "^4.0.1"
thenify-all "^1.0.0"

nanoresource@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/nanoresource/-/nanoresource-1.3.0.tgz#823945d9667ab3e81a8b2591ab8d734552878cd0"
integrity sha512-OI5dswqipmlYfyL3k/YMm7mbERlh4Bd1KuKdMHpeoVD1iVxqxaTMKleB4qaA2mbQZ6/zMNSxCXv9M9P/YbqTuQ==
dependencies:
inherits "^2.0.4"

napi-build-utils@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/napi-build-utils/-/napi-build-utils-1.0.2.tgz#b1fddc0b2c46e380a0b7a76f984dd47c41a13806"
integrity sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==

napi-macros@^2.0.0:
version "2.2.2"
resolved "https://registry.yarnpkg.com/napi-macros/-/napi-macros-2.2.2.tgz#817fef20c3e0e40a963fbf7b37d1600bd0201044"
integrity sha512-hmEVtAGYzVQpCKdbQea4skABsdXW4RUh5t5mJ2zzqowJS2OyXZTU1KhDVFhx+NlWZ4ap9mqR9TcDO3LTTttd+g==

node-abi@^3.3.0:
version "3.51.0"
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-3.51.0.tgz#970bf595ef5a26a271307f8a4befa02823d4e87d"
Expand Down
2 changes: 0 additions & 2 deletions src/apps/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import './auth/handlers';
import './windows/settings';
import './windows/process-issues';
import './windows';
import './background-processes/sync-engine';
import '../fuse/index';
import './background-processes/process-issues';
import './device/handlers';
import './usage/handlers';
Expand Down
7 changes: 7 additions & 0 deletions src/apps/main/virtual-drive.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if (process.platform === 'win32') {
import('./background-processes/sync-engine');
}

if (process.platform === 'linux') {
import('../fuse');
}

0 comments on commit e014813

Please sign in to comment.