From 79ce39919cad73cc1ff97ded446919f144f6a741 Mon Sep 17 00:00:00 2001 From: Carlos Venegas Date: Mon, 20 May 2024 22:25:14 +0200 Subject: [PATCH] OSX M1/M2 cpu github build all --- .github/workflows/main-osx-arm64.yml | 12 ++++++ package.json.backup | 55 ++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 package.json.backup diff --git a/.github/workflows/main-osx-arm64.yml b/.github/workflows/main-osx-arm64.yml index 63eca9ea8..41e65cf9b 100644 --- a/.github/workflows/main-osx-arm64.yml +++ b/.github/workflows/main-osx-arm64.yml @@ -26,8 +26,20 @@ jobs: - uses: actions/checkout@v3 with: ref: develop + + - name: Setup Nodejs version + uses: actions/setup-node@v3 + with: + node-version: '21.1.0' + + - name: Install npm dependencies + run: | + sed -i '' 's/darwinDependencies/dependencies/g' package.json + npm install --legacy-peer-deps + - name: Build OSX ARM64 packages run: | + npm run buildOSXARM64 ls dist/ diff --git a/package.json.backup b/package.json.backup new file mode 100644 index 000000000..3b76ab60b --- /dev/null +++ b/package.json.backup @@ -0,0 +1,55 @@ +{ + "name": "icestudio", + "version": "0.11.3w", + "description": "Visual editor for open FPGA boards", + "contributors": [ + { + "name": "Carlos Venegas Arrabe", + "url": "https://github.com/cavearr" + }, + { + "name": "Juan González Gómez", + "url": "https://github.com/Obijuan" + } + ], + "repository": "https://github.com/FPGAwars/icestudio", + "license": "GPL-2.0", + "scripts": { + "start": "grunt serve", + "buildLinux64": "grunt dist --platform=linux64", + "buildAarch64": "grunt dist --platform=aarch64 ", + "buildWindows": "grunt dist --platform=win64", + "buildOSX": "grunt dist --platform=darwin", + "buildOSXARM64": "grunt dist --platform=darwin --cpu=arm64", + "preptext": "grunt gettext && scripts/update_translations.sh", + "compiletext": "grunt compiletext", + "jshint": "grunt jshint", + "clean": "grunt clean", + "getcollection": "grunt getcollection", + "postinstall": "scripts/postInstall.sh && grunt getcollection && npmpd && cd app && npm install" + }, + "devDependencies": { + "grunt": "^1.4.1", + "grunt-angular-gettext": "^2.5.3", + "grunt-appimage": "^0.6.0", + "grunt-cli": "^1.4.3", + "grunt-contrib-clean": "^2.0.0", + "grunt-contrib-compress": "^2.0.0", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-jshint": "^3.1.1", + "grunt-contrib-watch": "^1.1.0", + "grunt-exec": "^3.0.0", + "grunt-json-minify": "^1.1.0", + "grunt-nw-builder": "^4.0.1", + "grunt-shell": "^3.0.1", + "grunt-wget": "^0.1.3", + "grunt-zip": "^0.18.2", + "npm-platform-dependencies": "0.1.0", + "nw": "0.83.0", + "nw-builder": "^4.5.4" + }, + "dependencies": { + "fs-xattr": "^0.4.0", + "grunt-appdmg": "github:agoodney/grunt-appdmg" + } +}