@clazic/urban 0.2.21 → 0.2.22
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/package.json +1 -1
- package/scripts/setup-poppler.js +4 -6
package/package.json
CHANGED
package/scripts/setup-poppler.js
CHANGED
|
@@ -10,8 +10,6 @@ import { homedir, tmpdir } from 'os';
|
|
|
10
10
|
import { join } from 'path';
|
|
11
11
|
import https from 'https';
|
|
12
12
|
|
|
13
|
-
if (process.platform !== 'win32') process.exit(0);
|
|
14
|
-
|
|
15
13
|
const URBAN_HOME = process.env.URBAN_HOME ?? join(homedir(), '.urban');
|
|
16
14
|
const POPPLER_DIR = join(URBAN_HOME, 'bin', 'poppler');
|
|
17
15
|
const BIN_PATH_FILE = join(URBAN_HOME, 'bin', 'poppler-bin-path.txt');
|
|
@@ -135,9 +133,9 @@ async function main() {
|
|
|
135
133
|
console.log(`[urban] poppler 설치 완료 → ${binDir}`);
|
|
136
134
|
}
|
|
137
135
|
|
|
138
|
-
|
|
139
|
-
.catch(err => {
|
|
136
|
+
if (process.platform === 'win32') {
|
|
137
|
+
await main().catch(err => {
|
|
140
138
|
console.warn('[urban] poppler 자동 설치 실패 (계속 진행):', err.message);
|
|
141
139
|
console.warn('[urban] 수동 설치: winget install oschwartz10612.poppler');
|
|
142
|
-
})
|
|
143
|
-
|
|
140
|
+
});
|
|
141
|
+
}
|