Skip to content

Commit

Permalink
fix: builds, macOS unsupported for a moment
Browse files Browse the repository at this point in the history
  • Loading branch information
SrIzan10 committed Jul 16, 2023
1 parent 5c7f3f6 commit 6978478
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
version: 2.1
jobs:
build_mac:
docker:
- image: node:lts
steps:
- checkout
- run: yarn
- run: yarn electron-ci
- run: yarn add -D dmg-license
- run: yarn build-electron-mac
build_windows:
docker:
- image: electronuserland/builder:wine
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ dist-ssr
*.sln
*.sw?

# some random thing from electron (it doesnt compile in a dist folder for some reason
./electron/index.js
build/
1 change: 0 additions & 1 deletion electron/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as path from 'node:path'
import { app, BrowserWindow, dialog, ipcMain } from 'electron';
import * as isDev from 'electron-is-dev';
import * as fs from 'fs';
import * as colorette from 'colorette';
import { exec } from 'node:child_process';

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"build": {
"extends": null,
"files": [
"build/**/*"
"./build/**/*",
"./dist/index.js"
],
"directories": {
"buildResources": "assets"
Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react-swc'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
outDir: './build'
},
base: ''
})

0 comments on commit 6978478

Please sign in to comment.