Skip to content

Commit

Permalink
Merge pull request #18 from pakerwreah/develop
Browse files Browse the repository at this point in the history
Auto device detection in Electron using UDP datagrams (#17)
  • Loading branch information
pakerwreah authored Oct 11, 2020
2 parents 08eb326 + 6025e27 commit 086d921
Show file tree
Hide file tree
Showing 26 changed files with 2,964 additions and 484 deletions.
482 changes: 259 additions & 223 deletions .editorconfig

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ module.exports = {
rules: {
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'no-debugger': 'error',
'quote-props': [1, 'consistent'],
'camelcase': 'off',
'vue/script-indent': ['error', 4, { 'baseIndent': 1, 'switchCase': 1 }],
'vue/html-indent': ['error', 4, { 'attribute': 2 }],
'vue/script-indent': ['error', 4, { baseIndent: 1, switchCase: 1 }],
'vue/html-indent': ['error', 4, { attribute: 2 }],
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/electron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Electron CI

on:
release:
types: [ published ]

jobs:
build:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build
run: |
npm install
npm run electron:build -- -mwl
- name: Upload
working-directory: dist_electron
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${GITHUB_REF##*/}"
hub release edit -a $(find . -maxdepth 1 -type f -name "*.exe" -print) -m "" "$tag_name"
hub release edit -a $(find . -maxdepth 1 -type f -name "*.dmg" -print) -m "" "$tag_name"
hub release edit -a $(find . -maxdepth 1 -type f -name "*.snap" -print) -m "" "$tag_name"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ yarn-error.log*
*.njsproj
*.sln
*.sw?

#Electron-builder output
/dist_electron
14 changes: 14 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
productName: Inspector
appId: br.newm.inspector

mac:
# TODO icon: src/assets/icon.icns
category: public.app-category.developer-tools

linux:
# TODO icon: src/assets/icon.png
category: Development

win:
# TODO icon: src/assets/icon.ico
artifactName: ${productName}-Setup-${version}.${ext}
Loading

0 comments on commit 086d921

Please sign in to comment.