-
Notifications
You must be signed in to change notification settings - Fork 0
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 #54 from taronaeo/feat/clientid-ipc
Wrapper Complete
- Loading branch information
Showing
35 changed files
with
656 additions
and
546 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
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,10 +1,7 @@ | ||
export function getAppName(process: NodeJS.Process) { | ||
const fullExecPath = process.execPath; | ||
const fullExecPathArr = fullExecPath.split('\\'); | ||
const execNameWithExt = fullExecPathArr[fullExecPathArr.length - 1]; | ||
const execName = execNameWithExt.slice(0, -4); | ||
return { | ||
code: 200, | ||
message: execName, | ||
}; | ||
import { parse } from 'path'; | ||
|
||
export function getAppName(appPath: string) { | ||
const parsedPath = parse(appPath); | ||
const appName = parsedPath.name; | ||
return appName; | ||
} |
Oops, something went wrong.