Skip to content

Commit

Permalink
Electron-vite, updated action + should solve resource asar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fxi committed Apr 23, 2024
1 parent c4d5dce commit ec0eb88
Show file tree
Hide file tree
Showing 68 changed files with 1,343 additions and 6,584 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/electron.yml
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: accessmod-docker-archive-${{ matrix.arch }}
path: ./electron/app/docker/accessmod-docker.tar.gz
path: ./electron/resources/accessmod-docker.tar.gz

build:
runs-on: ${{ matrix.os }}
Expand All @@ -57,19 +57,19 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: accessmod-docker-archive-${{ matrix.arch }}
path: ./electron/app/docker/
path: ./electron/resources/docker/

- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Install Dependencies
working-directory: ./electron
working-directory: ./electron
run: yarn install

- name : Build
working-directory: ./electron
working-directory: ./electron
env :
GH_TOKEN: ${{ secrets.github_token }}
run : yarn electron-builder --${{ matrix.platform }} --${{ matrix.arch }}
Expand Down
19 changes: 8 additions & 11 deletions .gitignore
Expand Up @@ -16,7 +16,7 @@ progress_stop
#
# macOS
#
.DS_Store
**/.DS_Store


#
Expand Down Expand Up @@ -66,18 +66,15 @@ Session.vim
.secrets

#
# Docker exported image
# - For electron launcher offline init.
#
docker/exported/*

electron/app/docker/*
# Electron built
#
electron/out/*
electron/dist/*
electron_vite/app/docker/*
electron_vite/out/*
electron_vite/dist/*
electron_vite/docker/*

#
# Archives
#
*/**/*.tar.gz

#
# node
Expand Down
13 changes: 0 additions & 13 deletions electron/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions electron/.prettierrc

This file was deleted.

39 changes: 0 additions & 39 deletions electron/LICENSE.md

This file was deleted.

36 changes: 28 additions & 8 deletions electron/README.md
@@ -1,14 +1,34 @@
# AccessMod launcher app
# my-app

A minimal Electron application with JavaScript

### Make
yarn make
## Recommended IDE Setup

- [VSCode](https://code.visualstudio.com/) + [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)

#### Start
yarn start
## Project Setup

### TODO
### Install

- Test
- Multiplatform build
```bash
$ yarn
```

### Development

```bash
$ yarn dev
```

### Build

```bash
# For windows
$ yarn build:win

# For macOS
$ yarn build:mac

# For Linux
$ yarn build:linux
```
1 change: 0 additions & 1 deletion electron/app/docker/meta.json

This file was deleted.

49 changes: 0 additions & 49 deletions electron/app/index.js

This file was deleted.

0 comments on commit ec0eb88

Please sign in to comment.