feat: generate binaries for MacOS Arm

This commit is contained in:
Amin Yahyaabadi 2024-04-03 01:03:49 -07:00
parent 17a5a833c4
commit 1cbbd6c740
3 changed files with 1 additions and 22 deletions

View File

@ -92,6 +92,7 @@ jobs:
os: os:
- windows-2022 - windows-2022
- ubuntu-22.04 - ubuntu-22.04
- macos-13
- macos-12 - macos-12
node: node:
- 20 - 20

View File

@ -1,17 +0,0 @@
/* eslint-disable import/no-extraneous-dependencies */
const { minify } = require("terser")
const { readFileSync, writeFileSync } = require("fs")
const { join, dirname } = require("path")
async function main() {
console.log("Disabling debug messages inside @actions/core")
const file = join(dirname(__dirname), "dist", "setup-cpp.js")
const { code, map } = await minify(readFileSync(file, "utf8"), { sourceMap: true, ...require("../.terserrc.js") })
writeFileSync(file, code)
writeFileSync(`${file}.map`, map)
}
main().catch(function(err) {
throw err
})

View File

@ -19,7 +19,6 @@
"src", "src",
"packages", "packages",
"dev/docker", "dev/docker",
"dev/docker/__tests__",
"README.md", "README.md",
"LICENSE.txt", "LICENSE.txt",
"LICENSE.dependencies.txt", "LICENSE.dependencies.txt",
@ -47,10 +46,6 @@
"lint.tsc": "tsc --noEmit", "lint.tsc": "tsc --noEmit",
"pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs", "pack.exe": "shx rm -rf ./dist/tsconfig.tsbuildinfo && node ./dev/scripts/pack-exe.mjs",
"prepublishOnly": "rm ./dist/tsconfig.tsbuildinfo", "prepublishOnly": "rm ./dist/tsconfig.tsbuildinfo",
"start.docker": "docker run -t setup-cpp .",
"start.docker.arch": "docker run -t setup-cpp:arch .",
"start.docker.fedora": "docker run -t setup-cpp:fedora .",
"start.docker.ubuntu": "docker run -t setup-cpp:ubuntu .",
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.dprint lint.tsc", "test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.dprint lint.tsc",
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/", "test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"test.lint.dprint": "dprint check", "test.lint.dprint": "dprint check",