Skip to content

Commit

Permalink
feat(release): publish 3.5.0 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnrdrata authored Oct 20, 2023
1 parent 5e316bd commit 731fdaa
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# compiled output
/dist
/node_modules
/prebuild
config.json

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.dccache

# Config
.env
sample.env

# Build
drata.pfx
/scripts
/cli
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The Drata Agent is a lightweight application that lives in your computer's toolb
- [Automatic Upgrades Channel Repository](https://github.com/drata/agent-releases)
- [Electron](https://www.electronjs.org/)
- [Electron Builder](https://www.electron.build/)
- [osquery](https://www.osquery.io/)

# Run or Build Drata Agent on Mac

Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drata-agent",
"version": "3.4.1",
"version": "3.5.0",
"description": "The Drata Agent is a light-weight tray-application that runs in the background, reporting important read-only data to Drata about your machine's state for compliance tracking.",
"author": "Drata Inc. <[email protected]> (https://drata.com)",
"private": true,
Expand All @@ -18,6 +18,7 @@
"appId": "com.drata.agent",
"productName": "Drata Agent",
"copyright": "© 2023 Drata Inc. All rights reserved.",
"artifactName": "Drata-Agent-${os}.${ext}",
"publish": [
{
"provider": "github",
Expand Down Expand Up @@ -106,6 +107,9 @@
]
},
"win": {
"signingHashAlgorithms": [
"sha256"
],
"extraResources": "lib/windows/bin/osqueryi.exe",
"target": [
{
Expand All @@ -117,6 +121,9 @@
],
"icon": "build/icon.png"
},
"nsis": {
"packElevateHelper": false
},
"linux": {
"extraResources": "lib/linux/bin/osqueryi",
"target": [
Expand All @@ -132,7 +139,7 @@
}
},
"engines": {
"node": "^16.16.0"
"node": "^18.16.1"
},
"devDependencies": {
"@drata/component-library": "^0.4.112",
Expand Down Expand Up @@ -162,7 +169,7 @@
"color-convert": "^2.0.1",
"concurrently": "^6.0.0",
"css-loader": "^6.7.2",
"electron": "24.1.1",
"electron": "24.8.3",
"electron-builder": "^23.6.0",
"electron-devtools-installer": "^3.2.0",
"electron-log": "^4.3.5",
Expand Down
6 changes: 6 additions & 0 deletions src/bridge/main-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class MainBridge {
this.logger.info({
execPath: process.execPath,
features: process.features,
nodeVer: process.version,
winSize: this.sender?.getSize(),
contentSize: this.sender?.getContentSize(),
...this.prepareDataForDiagnostics(
Expand All @@ -100,6 +101,11 @@ export class MainBridge {
processPriority: os.getPriority(),
uptime: os.uptime(),
jobs: SchedulerService.instance.getScheduledJobsInfo(),
nodeConfig: {
execArgv: process.execArgv,
argv: process.argv,
config: process.config,
},
});
} catch (err) {
this.logger.error(err, 'Error dumping diagnostics');
Expand Down
14 changes: 12 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as dns from 'dns';
import { app, powerMonitor } from 'electron';
import installExtension, { REDUX_DEVTOOLS } from 'electron-devtools-installer';
import { get, isNil } from 'lodash';
Expand Down Expand Up @@ -62,13 +63,22 @@ class DrataAgent {

async init(): Promise<DrataAgent | undefined> {
try {
await app.whenReady();
await app.whenReady().then(() => {
dns.setDefaultResultOrder('ipv4first');
});

this.installDevTools();

Intl.init();

await AutoLauncherHelper.enable();
try {
await AutoLauncherHelper.enable();
} catch (error: any) {
this.logger.warn(
'Could not modify automatic startup settings.',
error?.message,
);
}

const hasAccessToken = !!this.dataStore.get('accessToken');
const region = this.dataStore
Expand Down
2 changes: 0 additions & 2 deletions src/main/services/deep-link/deep-link.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export class DeepLinkService extends ServiceBase {
);

const parsed = this.resolveProtocol(protocol);
this.logger.info(`Protocol parsed as ${parsed}`);

this.storeCapturedProtocol(parsed);
this.emit(parsed);
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2484,10 +2484,10 @@ electron-updater@^6.0.3:
semver "^7.3.8"
typed-emitter "^2.1.0"

electron@24.1.1:
version "24.1.1"
resolved "https://registry.yarnpkg.com/electron/-/electron-24.1.1.tgz#05fa6269b1ee303fed7a05de9eb4be56c46660b8"
integrity sha512-ymjUMe6Pvh9ytpM4lOvr+Qxd6NG5AELRtR6tw54bK3FXfKtTTKKAtZw/NbwHwkRAlWu8FNAGOuvCoap6/bm9LQ==
electron@24.8.3:
version "24.8.3"
resolved "https://registry.yarnpkg.com/electron/-/electron-24.8.3.tgz#ea842167eaf0323961ff3bcce7237bdaf4f1317d"
integrity sha512-6YTsEOIMIQNnOz0Fj5gAWtwCuDd66iYKkuRJGyc80jKKYI49jBeH+R7ZZry9uiVu4T4bZgBN2FAN24XfCioQZA==
dependencies:
"@electron/get" "^2.0.0"
"@types/node" "^18.11.18"
Expand Down

0 comments on commit 731fdaa

Please sign in to comment.