Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #182
Browse files Browse the repository at this point in the history
Fixed Debian dependencies issue
  • Loading branch information
ironman0x7b2 authored Jul 21, 2020
2 parents 28d884c + 8a66580 commit 53436f7
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 43 deletions.
2 changes: 1 addition & 1 deletion wallet 2.0/debian.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"lintianOverrides": [
"changelog-file-missing-in-native-package"
],
"depends": ["openvpn", "libgconf2-4", "gksu","shadowsocks-libev", "wireguard"]
"depends": ["openvpn", "shadowsocks-libev", "wireguard", "gksu | policykit-1", "libgconf-2-4 | libgconf2-4"]
}
2 changes: 1 addition & 1 deletion wallet 2.0/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function windowManager() {
this.createWindow = () => {
if (process.platform === 'win32') screenHeight = 700;
else screenHeight = 672;
this.window = new BrowserWindow({ title: "Sentinel Network - dVPN - alpha-0.1.3", resizable: false, maximizable: false, width: 1000, height: screenHeight, icon: './public/icon256x256.png' });
this.window = new BrowserWindow({ title: "Sentinel Network - dVPN - alpha-0.1.4", resizable: false, maximizable: false, width: 1000, height: screenHeight, icon: './public/icon256x256.png' });
this.window.loadURL(url.format({
pathname: path.join(__dirname, 'build/index.html'),
protocol: 'file:',
Expand Down
2 changes: 1 addition & 1 deletion wallet 2.0/installers/windows/createinstaller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
const path = require('path')
const appVersion='0.1.3'
const appVersion='0.1.4'

getInstallerConfig()
.then(createWindowsInstaller)
Expand Down
4 changes: 2 additions & 2 deletions wallet 2.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Sentinel Network - dVPN Desktop Application",
"productName": "Sentinel",
"author": "Dev Team <[email protected]>",
"version": "0.1.3",
"version": "0.1.4",
"private": true,
"main": "electron.js",
"license": "MIT",
Expand Down Expand Up @@ -40,7 +40,7 @@
"package-mac": "electron-packager . Sentinel --overwrite --asar --platform=darwin --arch=x64 --icon=public/icon256x256.ico --prune=true --out=release-builds --extra-resource=public/gaiacli",
"package-win": "electron-packager . sentinel --overwrite --asar --platform=win32 --icon=public/icon256x256.ico --prune=true --out=release-builds --win32metadata.CompanyName=Sentinel --win32metadata.FileDescription=\"Application for Sentinel\" --win32metadata.requested-execution-level=requireAdministrator --win32metadata.ProductName=\"Sentinel\"",
"package-linux": "electron-packager . sentinel --overwrite --asar --platform=linux --arch=x64 --icon=public/icon256x256.png --prune=true --out=release-builds",
"create-installer-mac": "electron-installer-dmg ./release-builds/Sentinel-darwin-x64/Sentinel.app Sentinel-alpha-0.1.3 --out=release-builds --overwrite --icon=public/icon256x256.icns",
"create-installer-mac": "electron-installer-dmg ./release-builds/Sentinel-darwin-x64/Sentinel.app Sentinel-alpha-0.1.4 --out=release-builds --overwrite --icon=public/icon256x256.icns",
"create-installer-win": "node installers/windows/createinstaller.js",
"create-debian-installer": "electron-installer-debian --src release-builds/sentinel-linux-x64/ --arch amd64 --config debian.json"
},
Expand Down
7 changes: 6 additions & 1 deletion wallet 2.0/public/launch_wallet
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#!/bin/sh

gksu /usr/lib/sentinel/sentinel
if command -v pkexec > /dev/null
then
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/lib/sentinel/sentinel
else
gksu /usr/lib/sentinel/sentinel
fi
9 changes: 9 additions & 0 deletions wallet 2.0/scripts/debian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

rm -rf node_modules build release-builds && \
yarn && \
sed -i '/libgconf2-4/d' node_modules/electron-installer-debian/src/dependencies.js && \
yarn build && \
yarn package-linux && \
cp -r public/ release-builds/sentinel-linux-x64/ && \
yarn create-debian-installer
2 changes: 1 addition & 1 deletion wallet 2.0/src/Actions/connectSOCKS.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export async function checksentinelSocks(cb) {
cb(null);
} else {
let username = getUserHome();
exec(`${username}\\AppData\\Local\\Sentinel\\app-0.1.3\\resources\\extras\\socks5\\service.exe`, function (execErr, execOut, execStd) {
exec(`${username}\\AppData\\Local\\Sentinel\\app-0.1.4\\resources\\extras\\socks5\\service.exe`, function (execErr, execOut, execStd) {
exec(`net start sentinelSocksv12`, function (stderr, stdout, error) {
cb(null);
});
Expand Down
72 changes: 36 additions & 36 deletions wallet 2.0/src/Constants/language.js

Large diffs are not rendered by default.

0 comments on commit 53436f7

Please sign in to comment.