Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit f3fc3c7

Browse files
committed
Removed diskusage because of build problems
1 parent 89d0560 commit f3fc3c7

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

appveyor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ install:
1919
cd %APPVEYOR_BUILD_FOLDER%\build\production\Rambox\
2020
2121
npm install
22-
23-
npx electron-rebuild -v 11.4.10
2422
cache:
2523
- '%APPDATA%\npm-cache'
2624
- '%USERPROFILE%\.electron'

electron/main.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ var fs = require("fs");
1616
const path = require('path');
1717

1818
// Disk usage:
19-
const disk = require('diskusage');
20-
const appPath = app.getAppPath();
19+
// const disk = require('diskusage');
2120

2221
if ( isDev ) app.getVersion = function() { return require('../package.json').version; }; // FOR DEV ONLY, BECAUSE IN DEV RETURNS ELECTRON'S VERSION
2322

@@ -269,7 +268,7 @@ function formatBytes(bytes, decimals = 2) {
269268
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
270269
}
271270

272-
async function availableSpaceWatchDog() {
271+
/* async function availableSpaceWatchDog() {
273272
// optionally render this information also in rambox window
274273
try {
275274
const { available } = await disk.check(appPath);
@@ -289,7 +288,7 @@ async function availableSpaceWatchDog() {
289288
} catch (err) {
290289
console.error(err)
291290
}
292-
}
291+
} */
293292

294293
ipcMain.on('setBadge', function(event, messageCount, value) {
295294
mainWindow.setOverlayIcon(nativeImage.createFromDataURL(value), messageCount.toString());
@@ -594,7 +593,7 @@ if ( config.get('disable_gpu') ) app.disableHardwareAcceleration();
594593
// initialization and is ready to create browser windows.
595594
app.on('ready', function() {
596595
config.get('master_password') ? createMasterPasswordWindow() : createWindow();
597-
setInterval(availableSpaceWatchDog, 1000 * 60);
596+
// setInterval(availableSpaceWatchDog, 1000 * 60);
598597
});
599598
// Quit when all windows are closed.
600599
app.on('window-all-closed', function () {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220
"auth0-js": "9.13.2",
221221
"auto-launch-patched": "5.0.2",
222222
"crypto": "1.0.1",
223-
"diskusage": "1.1.3",
224223
"electron-contextmenu-wrapper": "git+https://github.com/ramboxapp/electron-contextmenu-wrapper.git",
225224
"electron-is-dev": "1.2.0",
226225
"electron-log": "4.3.0",

0 commit comments

Comments
 (0)