👷 Feat: Replace Travis w/ GitHub Actions CI (#912)
* Feat: add GH Actions
* forgot a sudo lol
* don't need to update
* upload dist once done
* rename to linux.yml
* rename name too
* add other platforms
* rename platforms
* fix windows maybe?
* spelled install wrong lol
* add code cov
* add snyk env
* fix env
* install npm
* delete snyk workflow
* don't install runtime dependencies before build script on win32
* win32 build script: respect README instructions
* Fix: fix travis cli for manos & linux (#911)
* fix: cache npm
* better artifact naming attempt
* cache electron binaries used by electron-builder
* better AppImage artifact naming
* banish travis
* test which platforms need python
* add publishing code
* move it to the right place
* always publish new draft
* load token
* let electron-builder figure out whether to publish artifacts or not
* cleanup some Snyk stuff
* remove .snyk
* Make a unified Workflow with multiple platforms as Jobs
* remove individual os-specific workflows, use unified workflow instead
Co-authored-by: NGabriel Saillard <gabriel@saillard.dev>
Showing
.snyk
已删除
100644 → 0
.travis.yml
已删除
100644 → 0
... | ... | @@ -19,18 +19,16 @@ |
"install-windows": "npm install && cd src && npm install && ..\\node_modules\\.bin\\electron-rebuild -f -w node-pty && cd ..", | ||
"prebuild-linux": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install", | ||
"prebuild-darwin": "rsync -a src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install", | ||
"prebuild-windows": "rmdir /S /Q src\\node_modules && mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install", | ||
"build-linux": "./node_modules/.bin/electron-builder build -l -p never", | ||
"build-darwin": "./node_modules/.bin/electron-builder build -m -p never", | ||
"build-windows": "node_modules\\.bin\\electron-builder build -w -p never", | ||
"prebuild-windows": "mkdir prebuild-src && xcopy src\\* prebuild-src\\ /E /C /Q /Y && node prebuild-minify.js && cd prebuild-src && npm install", | ||
"build-linux": "./node_modules/.bin/electron-builder build -l", | ||
"build-darwin": "./node_modules/.bin/electron-builder build -m", | ||
"build-windows": "node_modules\\.bin\\electron-builder build -w", | ||
"postbuild-linux": "rm -R prebuild-src", | ||
"postbuild-darwin": "rm -R prebuild-src", | ||
"postbuild-windows": "rmdir /S /Q prebuild-src", | ||
"test": "rsync -a --info=progress2 src/ prebuild-src --exclude node_modules && node prebuild-minify.js && cd prebuild-src && npm install && snyk test && cd .. && rm -R prebuild-src", | ||
"init-file-icons": "git submodule update --init", | ||
"update-file-icons": "git submodule foreach git pull origin master && node file-icons-generator.js", | ||
"snyk-protect": "snyk protect", | ||
"prepare": "npm run snyk-protect" | ||
"update-file-icons": "git submodule foreach git pull origin master && node file-icons-generator.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
... | ... | @@ -45,6 +43,7 @@ |
"build": { | ||
"appId": "com.edex.ui", | ||
"productName": "eDEX-UI", | ||
"publish": "github", | ||
"asar": true, | ||
"compression": "normal", | ||
"copyright": "Copyright © 2017-2020 Gabriel 'Squared' SAILLARD <gabriel@saillard.dev> (https://gaby.dev)", | ||
... | ... | @@ -69,7 +68,7 @@ |
"icon": "media/linuxIcons" | ||
}, | ||
"appImage": { | ||
"artifactName": "eDEX-UI Linux (${arch}).AppImage" | ||
"artifactName": "eDEX-UI-Linux-${arch}.AppImage" | ||
}, | ||
"mac": { | ||
"target": [ | ||
... | ... | @@ -111,12 +110,10 @@ |
"electron-rebuild": "^2.3.2", | ||
"node-abi": "2.19.1", | ||
"node-json-minify": "1.0.0", | ||
"snyk": "^1.427.0", | ||
"uglify-es": "3.3.9" | ||
}, | ||
"optionalDependencies": { | ||
"cson-parser": "4.0.5" | ||
}, | ||
"snyk": true, | ||
"devDependencies": {} | ||
} |
想要评论请 注册 或 登录