-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
32 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,6 @@ import { lastRelease } from "../helpers/github"; | |
import { repository } from "../helpers/utils"; | ||
import { info, error as errorLog, warning } from "../helpers/logger"; | ||
|
||
// Will be removed after Alpha phase | ||
import { init as initSentry } from "@sentry/electron/dist/main"; | ||
|
||
import { | ||
SETTINGS as SETTINGS_VIEW, | ||
LOGS as LOGS_VIEW, | ||
|
@@ -47,20 +44,6 @@ if (isDev) { | |
info("Running in development mode"); | ||
} | ||
|
||
// Will be run only during Alpha | ||
// Will be removed soon | ||
crashReporter.start({ | ||
productName: "Desktop", | ||
companyName: "VPN.ht", | ||
submitURL: | ||
"https://sentry.io/api/2765469/minidump/?sentry_key=5cac3e9abc124d6a9b2b1a9dbbcbd96d", | ||
uploadToServer: true | ||
}); | ||
|
||
initSentry({ | ||
dsn: "https://[email protected]/2765469" | ||
}); | ||
|
||
app.allowRendererProcessReuse = true; | ||
|
||
const gotTheLock = app.requestSingleInstanceLock(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ import React, { useReducer } from "react"; | |
import { webFrame } from "electron"; | ||
import { render } from "react-dom"; | ||
import isDev from "electron-is-dev"; | ||
// Will be removed after Alpha phase | ||
import { init as initSentry } from "@sentry/electron/dist/renderer"; | ||
|
||
import ApolloClient from "apollo-client"; | ||
import { InMemoryCache } from "apollo-cache-inmemory"; | ||
|
@@ -26,10 +24,6 @@ if (process.platform === "linux") { | |
webFrame.setZoomFactor(1.2); | ||
} | ||
|
||
initSentry({ | ||
dsn: "https://[email protected]/2765469" | ||
}); | ||
|
||
const initialState = {}; | ||
|
||
const httpLink = new HttpLink({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,9 @@ import ( | |
"syscall" | ||
"time" | ||
|
||
"github.com/sirupsen/logrus" | ||
"github.com/dropbox/godropbox/errors" | ||
"github.com/gin-gonic/gin" | ||
"github.com/sirupsen/logrus" | ||
"github.com/vpnht/desktop/packages/service/auth" | ||
"github.com/vpnht/desktop/packages/service/autoclean" | ||
"github.com/vpnht/desktop/packages/service/constants" | ||
|
@@ -25,8 +25,6 @@ import ( | |
"github.com/vpnht/desktop/packages/service/servers" | ||
"github.com/vpnht/desktop/packages/service/utils" | ||
"github.com/vpnht/desktop/packages/service/watch" | ||
|
||
"github.com/getsentry/sentry-go" | ||
) | ||
|
||
func main() { | ||
|
@@ -36,10 +34,6 @@ func main() { | |
constants.Development = true | ||
} | ||
|
||
sentry.Init(sentry.ClientOptions{ | ||
Dsn: "https://[email protected]/2765469", | ||
}) | ||
|
||
err := utils.PidInit() | ||
if err != nil { | ||
panic(err) | ||
|
@@ -159,6 +153,11 @@ func main() { | |
}() | ||
server.Shutdown(webCtx) | ||
server.Close() | ||
|
||
if runtime.GOOS == "linux" || runtime.GOOS == "darwin" { | ||
logrus.Info("Cleaning socket") | ||
syscall.Unlink("/var/run/vpnht.sock") | ||
} | ||
}() | ||
|
||
time.Sleep(250 * time.Millisecond) | ||
|
@@ -169,7 +168,4 @@ func main() { | |
} | ||
|
||
time.Sleep(750 * time.Millisecond) | ||
|
||
sentry.Flush(time.Second * 5) | ||
time.Sleep(750 * time.Millisecond) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.