Skip to content

Instantly share code, notes, and snippets.

@hex-ci
Last active December 4, 2020 06:55
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hex-ci/7bf67b22a509268e5e85e2160848bec0 to your computer and use it in GitHub Desktop.
Save hex-ci/7bf67b22a509268e5e85e2160848bec0 to your computer and use it in GitHub Desktop.
Sketch 超长试用版,用法:安装 nodejs 和 Sketch,下载 libsketchtrial.dylib 和 sketch.js 放到同一目录下,再执行 node sketch.js
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