Skip to content

Commit

Permalink
chore: console.log in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
erdkse authored and kambydyne committed Oct 7, 2021
1 parent 104547d commit 42f9186
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/redux/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import fs from 'fs';
import path from 'path';
import {PROCESS_ENV} from '@utils/env';
import {PROCESS_ENV, RESOURCES_PATH} from '@utils/env';

/**
* Gets the absolute path to a statically bundled resource in the /resources folder
*/

export function getStaticResourcePath(resourcePath: string) {
if (!process.resourcesPath) {
return '';
}
return PROCESS_ENV.NODE_ENV !== 'development'
? // @ts-ignore
path.join(process.resourcesPath, 'resources', resourcePath)
path.join(RESOURCES_PATH, 'resources', resourcePath)
: path.join('resources', resourcePath);
}

Expand Down
3 changes: 3 additions & 0 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@ function shellEnvSync() {
}
}
}
console.log('process.resourcesPath', process.resourcesPath);
console.log('shellEnvSync', shellEnvSync());
export const PROCESS_ENV: any = shellEnvSync();
export const RESOURCES_PATH = process.resourcesPath;

0 comments on commit 42f9186

Please sign in to comment.