From e7cb2cb38a995be10a2882c610eb468866cb5edd Mon Sep 17 00:00:00 2001 From: N0chteil <53608074+N0chteil@users.noreply.github.com> Date: Sat, 3 Dec 2022 13:07:56 +0100 Subject: [PATCH] [AMR-44] fix: move scpt files --- package.json | 2 +- src/darwin/index.ts | 2 +- src/darwin/{ => osascript}/music.scpt | 0 src/darwin/{ => osascript}/tv.scpt | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename src/darwin/{ => osascript}/music.scpt (100%) rename src/darwin/{ => osascript}/tv.scpt (100%) diff --git a/package.json b/package.json index afcf202..abe0751 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "start": "npm run build && node ./dist/index.js", "build": "tsc && npm run copy", - "copy": "copyfiles -u 1 -a src/darwin/*.scpt src/win32/wscript/*.js dist/", + "copy": "copyfiles -u 1 -a src/darwin/osascript/*.scpt src/win32/wscript/*.js dist/", "test": "npm run build && node test.js" }, "repository": { diff --git a/src/darwin/index.ts b/src/darwin/index.ts index bc7e1eb..9615c6e 100644 --- a/src/darwin/index.ts +++ b/src/darwin/index.ts @@ -57,7 +57,7 @@ export const fetchApp = { `${__dirname.replace( "app.asar", "app.asar.unpacked" - )}/music.scpt` + )}/osascript/music.scpt` )}` ) ).stdout.split(" -APPLEBRIDGEPLACEHOLDER- "); diff --git a/src/darwin/music.scpt b/src/darwin/osascript/music.scpt similarity index 100% rename from src/darwin/music.scpt rename to src/darwin/osascript/music.scpt diff --git a/src/darwin/tv.scpt b/src/darwin/osascript/tv.scpt similarity index 100% rename from src/darwin/tv.scpt rename to src/darwin/osascript/tv.scpt