Skip to content

Update version to beta #446

Update version to beta

Update version to beta #446

Workflow file for this run

name: Electron CD Mac
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16.17]
python-version: [3.7]
os: [macOS-11]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install Cairo
run: |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install cairo
# - name: Setup Python
# run: |
# curl -O "https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg"
# sudo installer -pkg ./python-3.6.8-macosx10.9.pkg -target /
# echo "/Library/Frameworks/Python.framework/Versions/3.6/bin" >> $GITHUB_PATH
# rm -f ./python-3.6.8-macosx10.9.pkg
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Python dependencies
run: |
python3 --version
python3 -m pip install --upgrade pip
pip3 install -r requirements.txt --no-binary=lxml
- name: Checkout Beamify
uses: actions/checkout@v3
with:
repository: flux3dp/beamify
ref: master
token: ${{ secrets.REPO_TOKEN }}
path: .github/actions/beamify
- name: Install Beamify
uses: ./.github/actions/beamify
- name: Install Fluxsvg
uses: flux3dp/fluxsvg@master
- name: Checkout FluxClient
uses: actions/checkout@v3
with:
repository: flux3dp/fluxclient-dev
ref: develop
token: ${{ secrets.REPO_TOKEN }}
path: .github/actions/fluxclient
- name: Install FluxClient
uses: ./.github/actions/fluxclient
- name: Build Flux Api
uses: flux3dp/fluxghost@develop
env:
LC_ALL: en_US.UTF-8
LC_CTYPE: en_US.UTF-8
- name: Checkout Beam Studio Core
uses: actions/checkout@v3
with:
repository: flux3dp/beam-studio-core
ref: 2.1.1
token: ${{ secrets.REPO_TOKEN }}
path: .github/actions/beam-studio-core
- name: Copy Beam Studio Core
run: |
cp -R .github/actions/beam-studio-core ../beam-studio-core
- name: Create Apple Certs
uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}
- name: Build Beam Studio
run: |
mkdir backend
yarn install
./node_modules/.bin/webpack
cp -R $HOME/flux_api_swap backend/flux_api
cp -R lib/monitorexe-osx backend/monitorexe-osx
./backend/flux_api/flux_api --test --without_pcl
cp -R util/mac utils
sudo bash ./build/clearup-develop-files.sh
echo "Signing *.so files..."
find ./backend -name "*.so" | while read f ; do
codesign --force --verbose -s "Developer ID Application: FLUX TECHNOLOGY CORP. (4Y92JWKV94)" $f; done
chmod -R 777 node_modules/font-scanner
yarn dist --publish always
env:
PUBLISH_BUCKET: beamstudio
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
PUBLISH_PATH: ""
APPLEID: ${{ secrets.APPLEID_DEAN }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS_DEAN }}
# - name: Cleanup artifacts
# run: |
# mkdir artifacts
# mv dist/*.dmg artifacts
# - name: Upload artifacts
# uses: actions/upload-artifact@v1
# with:
# name: ${{matrix.os}}
# path: artifacts