Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to 3.1.5 #317

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 19 additions & 49 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,11 @@ orbs:
# The Node.js orb contains a set of prepackaged CircleCI configuration you can utilize
# Orbs reduce the amount of configuration required for common tasks.
# See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/node
node: circleci/node@5.1.0
node: circleci/node@4.7

jobs:
build-rpm: # this can be any name you choose
executor: node/default # use the default executor defined within the orb
steps:
- checkout
- run:
command: pwd
- run:
command: npm i --openssl-fips=''
# - node/install-packages:
# pkg-manager: npm
- run:
command: sudo apt-get update
name: Update apt-get
- run:
command: sudo apt-get install rpm
name: Install Dependencies
- run:
command: npm run build:rpm --openssl-fips=""
name: Build app
- run:
name: Create Artifacts
command: |
mkdir -p upload
cp dist/CrossOver* upload
- store_artifacts:
path: upload
destination: upload

# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
build-all:
buildall:
macos:
xcode: 12.5.1
steps:
Expand All @@ -55,38 +27,45 @@ jobs:
command: pwd
- node/install:
install-yarn: true
node-version: "16.20.0"
node-version: "14.17.4"
# AT SOME POINT YARN INSTALL BROKE FOR NO REASON, TRY SWITCHING BACK TO YARN TO SEE IF IT WORKS
# - node/install-packages:
# # If you are using yarn, change the line below from "npm" to "yarn"
# pkg-manager: yarn
- run:
name: Install Node modules
command: npm i --openssl-fips=''
command: npm i
- run:
name: Brew Clean
command: rm '/usr/local/lib/python3.9/site-packages/six.py'
- run:
name: Install Dependencies
command: HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1 brew install snapcraft rpm
# - run:
# name: Run tests
# command: yarn test || echo "There were test failures, this build may be sour."
- run:
name: Snapcraft Login
# Generate the snap token with 'snapcraft export-login --snaps crossover --channels edge,stable -'
command: echo "$SNAP_TOKEN" | snapcraft login --with -
- run:
name: Run tests
command: yarn test
- run:
name: Build and Publish - windows
command: npm run build:windows $( [ "$CIRCLE_BRANCH" != "release" ] && printf %s '--publish-never' ) --openssl-fips=""
command: yarn build:windows $( [ "$CIRCLE_BRANCH" != "release" ] && printf %s '--publish never' )
# - run:
# name: Create Windows EXE
# command: yarn sh:copyexe
- run:
name: Build and Publish - windows CrossOver.exe
command: npm run build:windows:exe --openssl-fips="" || echo 'We error here since latest.yml has already been uploaded.'
command: yarn build:windows:exe || echo 'We error here since latest.yml has already been uploaded.'
- run:
name: Build and Publish - snap
command: yarn build:snap $( [ "$CIRCLE_BRANCH" == "release" ] && printf %s '--publish always' )
- run:
name: Build and Publish - linux
command: npm run build:linux --openssl-fips=""
command: yarn build:linux
- run:
name: Build and Publish - mac
command: npm run build:mac --openssl-fips=""
command: yarn build:mac
- run:
name: ls dist
command: ls dist
Expand All @@ -100,7 +79,6 @@ jobs:
git pull
git merge ${CIRCLE_BRANCH} || echo "Not merging to stable"
git push --set-upstream origin stable || echo "Not pushing stable"

- run:
name: Create Artifacts
command: |
Expand All @@ -109,13 +87,6 @@ jobs:
cp /Users/distiller/project/dist/latest* /Users/distiller/project/upload
- store_artifacts:
path: /Users/distiller/project/upload
# - run:
# name: Snapcraft Login
# # Generate the snap token with 'snapcraft export-login --snaps crossover --channels edge,stable -'
# command: snapcraft login
- run:
name: Build and Publish - snap
command: npm run build:snap $( [ "$CIRCLE_BRANCH" == "release" ] && printf %s '--publish-always' ) --openssl-fips=""

workflows:
# Below is the definition of your workflow.
Expand All @@ -129,5 +100,4 @@ workflows:
- equal: [master, << pipeline.git.branch >>]
- equal: [release, << pipeline.git.branch >>]
jobs:
- build-rpm
- build-all
- buildall
8 changes: 0 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ module.exports = {
},
requireConfigFile: false,
},
settings: {
react: {
pragma: 'React',
fragment: 'Fragment',
version: 'detect',
},
},
rules: {
'array-bracket-newline': [
'error',
Expand All @@ -42,7 +35,6 @@ module.exports = {
'always',
],
'capitalized-comments': 0,
indent: [ 'error', 'tab' ],
'padded-blocks': [
'error',
{
Expand Down
31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/something-else.md

This file was deleted.

69 changes: 27 additions & 42 deletions .github/workflows/crossover-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,27 @@ jobs:
crossover-ci-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

# install Bun
- uses: oven-sh/setup-bun@v1

# Make sure build is clean and no files from a previous run are re-used.
- name: Cleanup files before run
run: |
rm -rf *
if: ${{ always() }}

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout Project
uses: actions/checkout@v2
- uses: actions/checkout@v3

# Check memory and cpu
- name: Verify Runner Resources
run: |
sysctl -n machdep.cpu.brand_string
vm_stat | perl -ne '/page size of (\d+)/ and $size=$1; /Pages\s+([^:]+)[^\d]+(\d+)/ and printf("%-16s % 16.2f Mi\n", "$1:", $2 * $size / 1048576);'
# - name: Install Tools
# run: |
# brew install jq

- name: Get Node Version
run: |
cat .nvmrc
echo "::set-output name=nodeversion::$(cat .nvmrc)"
echo "nodeversion=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: get-node-version

- name: Use Node.js ${{ steps.get-node-version.outputs.nodeversion }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ steps.get-node-version.outputs.nodeversion }}
cache: "npm"
Expand All @@ -52,23 +42,23 @@ jobs:
echo "node: $(node --version)"
echo "npm: $(npm --version)"
echo "yarn: $(yarn --version)"
npm install
npm install --openssl_fips=""

- name: Lint
run: npm run lint

- name: Check Dependencies
run: npm run depcheck

- name: Unpackaged Test 🧪
run: npm run test
# - name: Unpackaged Test 🧪
# run: npm run test

# - name: Build
# run: |
# npm run build:mac
# env:
# # Set CI flag to false, or the build fails on all warnings, not just errors as locally.
# CI: false
- name: Build
run: |
npm run build:mac --openssl_fips=""
env:
# Set CI flag to false, or the build fails on all warnings, not just errors as locally.
CI: false

# - name: Package App
# run: |
Expand All @@ -84,7 +74,7 @@ jobs:

- name: Upload Test Results 🗃
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
Expand All @@ -101,19 +91,19 @@ jobs:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
- name: Checkout Project
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get Node Version
run: |
Set-PSDebug -Trace 1
$filePath = ".nvmrc"
Get-Content $filePath -Raw
$content = Get-Content $filePath -Raw
echo "::set-output name=nodeversion::$content"
echo "nodeversion=$content" >> $GITHUB_OUTPUT
id: get-node-version

- name: Use Node.js ${{ steps.get-node-version.outputs.nodeversion }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ steps.get-node-version.outputs.nodeversion }}
cache: "npm"
Expand All @@ -134,21 +124,16 @@ jobs:
yarn --version
npm install

- name: Lint
run: npm run lint

- name: Check Dependencies
run: npm run depcheck

- name: Unpackaged Test 🧪
run: npm run test
# - name: Unpackaged Test 🧪
# run: npm run test

# - name: Build
# run: |
# npm run build:windows
# env:
# # Set CI flag to false, or the build fails on all warnings, not just errors as locally.
# CI: false
- name: Build
run: |
npm run build:windows
env:
# Set CI flag to false, or the build fails on all warnings, not just errors as locally.
# We use circle as ci
CI: false

# - name: Package
# run: |
Expand All @@ -170,7 +155,7 @@ jobs:

# - name: Upload Test Results 🗃
# if: always()
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v3
# with:
# name: playwright-output
# path: test-output/**
Loading
Loading