Last active
December 4, 2020 06:55
-
-
Save hex-ci/7bf67b22a509268e5e85e2160848bec0 to your computer and use it in GitHub Desktop.
Sketch 超长试用版,用法:安装 nodejs 和 Sketch,下载 libsketchtrial.dylib 和 sketch.js 放到同一目录下,再执行 node sketch.js
This file contains hidden or 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
const { spawn } = require('child_process'); | |
spawn('/Applications/Sketch.app/Contents/MacOS/Sketch', { | |
stdio: 'ignore', | |
detached: true, | |
env: { | |
DYLD_INSERT_LIBRARIES: `${__dirname}/libsketchtrial.dylib` | |
} | |
}).unref(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment