-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from IsmaelMartinez/0.1.5
arguments, asar and not persisting the session by default
- Loading branch information
Showing
9 changed files
with
464 additions
and
82 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
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 |
---|---|---|
@@ -1,58 +1,46 @@ | ||
// 'use strict'; | ||
// // const yargs = require('yargs'); | ||
// const path = require('path'); | ||
'use strict'; | ||
const yargs = require('yargs'); | ||
const path = require('path'); | ||
|
||
// function argv(configPath) { | ||
// return yargs | ||
// .env(true) | ||
// .config(path.join(configPath, 'teams.json')) | ||
// .options({ | ||
// url: { | ||
// demandOption: true, | ||
// default: 'https://teams.microsoft.com/', | ||
// describe: 'Microsoft Teams URL', | ||
// type: 'string' | ||
// }, | ||
// webDebug: { | ||
// demandOption: false, | ||
// default: false, | ||
// describe: 'Enable debug', | ||
// type: 'boolean' | ||
// }, | ||
// firewallUsername: { | ||
// alias: 'u', | ||
// demandOption: false, | ||
// describe: 'Username', | ||
// type: 'string' | ||
// }, | ||
// firewallPassword: { | ||
// alias: 'p', | ||
// demandOption: false, | ||
// describe: 'Password', | ||
// type: 'string' | ||
// }, | ||
// userAgent: { | ||
// demandOption: false, | ||
// describe: 'HTTP User Agent', | ||
// type: 'string', | ||
// default: 'edge' | ||
// }, | ||
// edgeUserAgent: { | ||
// demandOption: false, | ||
// describe: 'Microsoft Edge User Agent', | ||
// type: 'string', | ||
// default: | ||
// 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134' | ||
// }, | ||
// chromeUserAgent: { | ||
// demandOption: false, | ||
// describe: 'Google Chrome User Agent', | ||
// type: 'string', | ||
// default: | ||
// 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' | ||
// } | ||
// }) | ||
// .implies('firewallUsername', 'firewallPassword').argv; | ||
// } | ||
function argv(configPath) { | ||
return yargs | ||
.env(true) | ||
.config(path.join(configPath, 'teams.json')) | ||
.options({ | ||
url: { | ||
default: 'https://teams.microsoft.com/', | ||
describe: 'Microsoft Teams URL', | ||
type: 'string' | ||
}, | ||
webDebug: { | ||
default: false, | ||
describe: 'Enable debug', | ||
type: 'boolean' | ||
}, | ||
partition: { | ||
default: 'nopersist', | ||
describe: 'BrowserWindow webpreferences partition', | ||
type: 'string' | ||
}, | ||
userAgent: { | ||
describe: 'HTTP User Agent', | ||
type: 'string', | ||
default: 'chrome' | ||
}, | ||
edgeUserAgent: { | ||
describe: 'Microsoft Edge User Agent', | ||
type: 'string', | ||
default: | ||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134' | ||
}, | ||
chromeUserAgent: { | ||
describe: 'Google Chrome User Agent', | ||
type: 'string', | ||
default: | ||
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36' | ||
} | ||
}) | ||
.argv; | ||
} | ||
|
||
// exports = module.exports = argv; | ||
exports = module.exports = argv; |
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
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
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
{ | ||
"name": "teams-for-linux", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Microsoft Teams for Linux", | ||
"main": "lib/index.js", | ||
"author": "Ivelin Velkov <[email protected]>", | ||
"dependencies": { | ||
"electron-window-state": "~4.1.1", | ||
"electron-native-notification":"^1.2.1", | ||
"opn": "5.3.0" | ||
"opn": "5.3.0", | ||
"yargs": "^12.0.1" | ||
} | ||
} |
Oops, something went wrong.