瀏覽代碼

fix: header indents

Sv443 1 年之前
父節點
當前提交
b730aff527
共有 1 個文件被更改,包括 38 次插入38 次删除
  1. 38 38
      src/tools/post-build.ts

+ 38 - 38
src/tools/post-build.ts

@@ -38,44 +38,44 @@ type BuildStats = {
   const resourcesDirectives = await getResourceDirectives();
 
   const header = `\
-  // ==UserScript==
-  // @name            ${pkg.userscriptName}
-  // @homepageURL     ${pkg.homepage}#readme
-  // @namespace       ${pkg.homepage}
-  // @version         ${pkg.version}
-  // @description     ${pkg.description}
-  // @description:de  ${pkg["description:de"]}
-  // @license         ${pkg.license}
-  // @author          ${pkg.author.name}
-  // @copyright       ${pkg.author.name} (${pkg.author.url})
-  // @icon            https://raw.githubusercontent.com/${repo}/${branch}/assets/icon/icon.png
-  // @match           https://music.youtube.com/*
-  // @match           https://www.youtube.com/*
-  // @run-at          document-start
-  // @downloadURL     ${scriptUrl}
-  // @updateURL       ${scriptUrl}
-  // @connect         api.sv443.net
-  // @grant           GM.getValue
-  // @grant           GM.setValue
-  // @grant           GM.getResourceUrl
-  // @grant           unsafeWindow
-  // @noframes\
-  ${resourcesDirectives ? "\n" + resourcesDirectives : ""}
-  // ==/UserScript==
-  /*
-  ▄▄▄                    ▄   ▄▄▄▄▄▄   ▄
-  █  █ ▄▄▄ █   █   ▄▄▄ ▄ ▄█ █  █  █▀▄▀█
-  █▀▀▄ █▄█ █▀  █▀  █▄█ █▀  █   █  █   █
-  █▄▄▀ ▀▄▄ ▀▄▄ ▀▄▄ ▀▄▄ █   █   █  █   █
-
-          Made with ❤️ by Sv443
-  I welcome every contribution on GitHub!
-    https://github.com/Sv443/BetterYTM
-  */
-
-  /* Disclaimer: I am not affiliated with YouTube, Google, Alphabet, Genius or anyone else */
-  /* C&D this 🖕 */
-  `;
+// ==UserScript==
+// @name            ${pkg.userscriptName}
+// @homepageURL     ${pkg.homepage}#readme
+// @namespace       ${pkg.homepage}
+// @version         ${pkg.version}
+// @description     ${pkg.description}
+// @description:de  ${pkg["description:de"]}
+// @license         ${pkg.license}
+// @author          ${pkg.author.name}
+// @copyright       ${pkg.author.name} (${pkg.author.url})
+// @icon            https://raw.githubusercontent.com/${repo}/${branch}/assets/icon/icon.png
+// @match           https://music.youtube.com/*
+// @match           https://www.youtube.com/*
+// @run-at          document-start
+// @downloadURL     ${scriptUrl}
+// @updateURL       ${scriptUrl}
+// @connect         api.sv443.net
+// @grant           GM.getValue
+// @grant           GM.setValue
+// @grant           GM.getResourceUrl
+// @grant           unsafeWindow
+// @noframes\
+${resourcesDirectives ? "\n" + resourcesDirectives : ""}
+// ==/UserScript==
+/*
+▄▄▄                    ▄   ▄▄▄▄▄▄   ▄
+█  █ ▄▄▄ █   █   ▄▄▄ ▄ ▄█ █  █  █▀▄▀█
+█▀▀▄ █▄█ █▀  █▀  █▄█ █▀  █   █  █   █
+█▄▄▀ ▀▄▄ ▀▄▄ ▀▄▄ ▀▄▄ █   █   █  █   █
+
+        Made with ❤️ by Sv443
+I welcome every contribution on GitHub!
+  https://github.com/Sv443/BetterYTM
+*/
+
+/* Disclaimer: I am not affiliated with YouTube, Google, Alphabet, Genius or anyone else */
+/* C&D this 🖕 */
+`;
 
   try {
     const rootPath = join(dirname(fileURLToPath(import.meta.url)), "../../");