@mac-bug-screenshot/native-host 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/install.js +1 -13
- package/manifest.template.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npm install -g @mac-bug-screenshot/native-host
|
|
|
11
11
|
## 등록
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
mac-bug-screenshot-install
|
|
14
|
+
mac-bug-screenshot-install
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## 동작
|
|
@@ -29,6 +29,6 @@ mac-bug-screenshot-install <확장_프로그램_ID>
|
|
|
29
29
|
- `Native host has exited` 오류가 뜨면 최신 버전으로 업데이트 후 재등록하세요.
|
|
30
30
|
```bash
|
|
31
31
|
npm install -g @mac-bug-screenshot/native-host@latest
|
|
32
|
-
mac-bug-screenshot-install
|
|
32
|
+
mac-bug-screenshot-install
|
|
33
33
|
```
|
|
34
34
|
- nvm 사용 시에도 `npm root -g` 기준 경로로 자동 설정됩니다.
|
package/bin/install.js
CHANGED
|
@@ -19,21 +19,9 @@ const TARGET_DIR = path.join(
|
|
|
19
19
|
);
|
|
20
20
|
const TARGET_PATH = path.join(TARGET_DIR, `${HOST_NAME}.json`);
|
|
21
21
|
|
|
22
|
-
function printUsage() {
|
|
23
|
-
console.log("사용법: mac-bug-screenshot-install <확장_프로그램_ID>");
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
function main() {
|
|
27
|
-
const extensionId = process.argv[2];
|
|
28
|
-
if (!extensionId) {
|
|
29
|
-
printUsage();
|
|
30
|
-
process.exit(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
23
|
const template = fs.readFileSync(TEMPLATE_PATH, "utf8");
|
|
34
|
-
const manifest = template
|
|
35
|
-
.replace(/__HOST_PATH__/g, WRAPPER_PATH)
|
|
36
|
-
.replace(/__EXTENSION_ID__/g, extensionId);
|
|
24
|
+
const manifest = template.replace(/__HOST_PATH__/g, WRAPPER_PATH);
|
|
37
25
|
|
|
38
26
|
if (!fs.existsSync(HOST_PATH)) {
|
|
39
27
|
console.error("host.js를 찾을 수 없습니다:", HOST_PATH);
|
package/manifest.template.json
CHANGED