diff --git a/package.json b/package.json index 26ec8fb..ff0d878 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Hozz", - "version": "0.1.0", + "version": "0.1.1", "description": "A better way to manage your hosts.", "main": "browser.js", "scripts": { @@ -16,7 +16,7 @@ "all-platform" ], "author": "PPOffice", - "license": "BSD", + "license": "BSD-3-Clause", "bugs": { "url": "https://github.com/ppoffice/Hozz/issues" }, diff --git a/src/js/backend/permission.js b/src/js/backend/permission.js index 580f1f0..b156831 100644 --- a/src/js/backend/permission.js +++ b/src/js/backend/permission.js @@ -5,11 +5,12 @@ import { APP_NAME } from '../constants'; const SUDO_OPTION = { name: APP_NAME, - icns: path.join(__dirname, './assets/images/icon.icns'), + icns: path.join(global.__dirname, './assets/images/icon.icns'), process: { options: { env: { 'LANG': 'en_US.UTF-8' } - } + }, + on: () => {} } }; @@ -32,7 +33,7 @@ const enableFullAccess = () => { break; case 'darwin': case 'linux': - command = 'chmod 666 /etc/hosts'; + command = '/bin/chmod 644 /etc/hosts'; break; default: command = ''; diff --git a/src/js/constants.js b/src/js/constants.js index 13a5313..a10ef3f 100644 --- a/src/js/constants.js +++ b/src/js/constants.js @@ -3,7 +3,7 @@ const path = require('path'); import keymirror from 'keymirror'; export const APP_NAME = 'Hozz'; -export const APP_VERSION = '0.1.0'; +export const APP_VERSION = '0.1.1'; export const APP_AUTHER = 'PPOffice'; export const APP_HOMEPAGE = 'https://ppoffice.github.io/Hozz'; export const APP_RELEASES_URL = `https://api.github.com/repos/ppoffice/${ APP_NAME }/releases`;