Skip to content

Commit

Permalink
revert to 8145627
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Dec 8, 2023
1 parent 403e59d commit 258d6fa
Show file tree
Hide file tree
Showing 47 changed files with 3,507 additions and 3,961 deletions.
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.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: crossover-ci
name: crossover-tests

on:
push:
Expand All @@ -8,14 +8,9 @@ on:
- release

jobs:
crossover-ci-mac:
crossover-tests-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: |
Expand Down Expand Up @@ -89,7 +84,7 @@ jobs:
name: dist
path: dist/*

crossover-ci-windows:
crossover-tests-windows:
runs-on: windows-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
package-lock.json
dist
src/renderer/styles/dist
21 changes: 0 additions & 21 deletions .hintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
14.17.4
File renamed without changes.
71 changes: 0 additions & 71 deletions Dockerfile

This file was deleted.

7 changes: 4 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: Visual Studio 2019
image: Visual Studio 2017

matrix:
fast_finish: true
Expand All @@ -17,15 +17,16 @@ branches:
skip_tags: true

environment:
nodejs_version: "16.20.0"
nodejs_version: "14.17.4"

cache:
- node_modules -> package.json
- '%USERPROFILE%\.electron'

install:
- ps: Install-Product node $env:nodejs_version
- npm i --openssl-fips=''
- yarn config set network-timeout 600000 -g
- yarn

build_script:
- cmd: node --version
Expand Down

0 comments on commit 258d6fa

Please sign in to comment.