This commit is contained in:
xyf-mac 2021-11-08 11:24:48 +08:00
parent 13271d7c79
commit 59cf18f2f2
3 changed files with 23 additions and 15 deletions

View File

@ -2,7 +2,7 @@
name: CI
# Controls when the action will run.
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
@ -25,26 +25,22 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
cd ./source
npm run build
- name: webext-buildtools-chrome-crx-action
# You may pin to the exact commit or the version.
# uses: cardinalby/webext-buildtools-chrome-crx-action@6ffc20d012116ea3fa0c6697382b026fc7df9535
uses: cardinalby/webext-buildtools-chrome-crx-action@2.0.0
with:
# Path to WebExtension directory
zipFilePath: 1
zipFilePath: "./"
# Path to save result crx file
crxFilePath: 1
crxFilePath: "./"
# Contents of private key used to sign crx file
privateKey: 1
privateKey: "./key.pem"
# Path to save update.xml file for extensions hosted not on Chrome Web Store. This xml is used as response at url, specified in manifest's `update_url` key file
updateXmlPath:1 # optional
# Required, if you specified updateXmlPath. URL to the .crx file

View File

@ -5,3 +5,15 @@ inject在development模式下无法正常使用暂时的解决办法注释
webpackConfig.plugin('extension-reloader').use(ExtensionReloader, [{ entries, ...extensionReloaderOptions }])
```
详细原因参考:[issues](https://github.com/adambullmer/vue-cli-plugin-browser-extension/issues/120)
# 后续工作
popup界面增加联系方式。
开发一个独立的electron桌面版本使用socket调试app解决排查app问题的痛点。
防止别人篡改,必须混淆代码,增加修改难度,暂时不做加密。
适配插件版本(不紧急)

View File

@ -1,6 +1,6 @@
{
"name": "app",
"version": "0.1.1",
"version": "0.2.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
@ -9,9 +9,6 @@
"build-watch": "vue-cli-service build --watch"
},
"dependencies": {
"@types/kind-of": "^6.0.0",
"@types/lodash": "^4.14.176",
"babel-eslint": "^10.1.0",
"core-js": "^3.6.5",
"element-ui": "^2.15.1",
"fs-extra": "^9.1.0",
@ -24,6 +21,9 @@
"vue-property-decorator": "^9.1.2"
},
"devDependencies": {
"@types/kind-of": "^6.0.0",
"@types/lodash": "^4.14.176",
"babel-eslint": "^10.1.0",
"@types/fs-extra": "^9.0.9",
"@types/node": "^14.14.37",
"@types/uuid": "^8.3.1",