Skip to content

Commit d5abe81

Browse files
committed
github action
1 parent f35a710 commit d5abe81

File tree

2 files changed

+119
-9
lines changed

2 files changed

+119
-9
lines changed

.github/workflows/build.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Build Browser Extensions
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '18'
19+
20+
- name: Install dependencies
21+
run: |
22+
npm install
23+
npm install -g web-ext
24+
25+
- name: Build Chromium-based Extension
26+
run: |
27+
mkdir -p dist/chrome
28+
cp -r src/* dist/chrome/
29+
cd dist/chrome
30+
zip -r ../chromium.zip *
31+
32+
- name: Build Firefox Extension
33+
run: |
34+
mkdir -p dist/firefox
35+
cp -r src/* dist/firefox/
36+
jq '.browser_specific_settings = {"gecko": {"id": "[email protected]"}}' manifest.json > manifest.tmp
37+
mv manifest.tmp manifest.json
38+
web-ext build -s . -a ../firefox
39+
40+
- name: Create Release
41+
id: create_release
42+
uses: softprops/action-gh-release@v1
43+
if: startsWith(github.ref, 'refs/tags/')
44+
with:
45+
files: |
46+
dist/chromium.zip
47+
dist/firefox.zip
48+
name: Release ${{ github.ref_name }}
49+
body: |
50+
Easy Prompt Browser Extension Release ${{ github.ref_name }}
51+
52+
### 支持的浏览器 Supported Browsers:
53+
- Chrome
54+
- Edge
55+
- 360浏览器
56+
- Firefox
57+
58+
### 安装说明 Installation:
59+
60+
#### Chromium-based (Chrome/Edge/360):
61+
1. 解压 chromium.zip
62+
2. 访问 chrome://extensions
63+
3. 开启"开发者模式"
64+
4. 点击"加载已解压的扩展程序"
65+
5. 选择解压后的文件夹
66+
67+
#### Firefox:
68+
1. 访问 about:debugging
69+
2. 点击"临时载入附加组件"
70+
3. 选择 firefox.zip 中的 manifest.json
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

+47-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Easy Prompt is a powerful browser extension that helps you save and quickly reuse prompts across various AI platforms.
44

5-
[English](README.md) | [中文](README_CN.md)
5+
[English](#installation) | [中文](#安装说明)
66

77
### Features
88

@@ -30,15 +30,53 @@ Easy Prompt is a powerful browser extension that helps you save and quickly reus
3030
- Keyboard shortcuts support
3131
- Clipboard integration
3232

33-
### Installation
33+
## Installation
3434

35-
1. Install from Chrome Web Store (link coming soon)
36-
2. Manual installation:
37-
- Download the code from this repository
38-
- Open Chrome and go to `chrome://extensions/`
39-
- Enable "Developer mode"
40-
- Click "Load unpacked"
41-
- Select the downloaded code folder
35+
### Chrome / Edge / 360 Browser
36+
1. Download `chromium.zip` from [Releases](https://github.com/shalom-lab/easy-prompt/releases)
37+
2. Unzip the file
38+
3. Open Chrome/Edge, go to `chrome://extensions/` or `edge://extensions/`
39+
4. Enable "Developer mode" in the top right corner
40+
5. Click "Load unpacked" button
41+
6. Select the unzipped folder
42+
43+
### Firefox
44+
1. Download `firefox.zip` from [Releases](https://github.com/shalom-lab/easy-prompt/releases)
45+
2. Go to `about:debugging` in Firefox
46+
3. Click "This Firefox" on the left sidebar
47+
4. Click "Load Temporary Add-on"
48+
5. Select the `manifest.json` file in the unzipped folder
49+
50+
---
51+
52+
## 安装说明
53+
54+
### Chrome / Edge / 360浏览器
55+
1.[Releases](https://github.com/shalom-lab/easy-prompt/releases) 下载 `chromium.zip`
56+
2. 解压文件
57+
3. 打开浏览器,访问 `chrome://extensions/``edge://extensions/`
58+
4. 在右上角开启"开发者模式"
59+
5. 点击"加载已解压的扩展程序"
60+
6. 选择解压后的文件夹
61+
62+
### Firefox 火狐浏览器
63+
1.[Releases](https://github.com/shalom-lab/easy-prompt/releases) 下载 `firefox.zip`
64+
2. 在 Firefox 中访问 `about:debugging`
65+
3. 点击左侧栏的"此 Firefox"
66+
4. 点击"临时载入附加组件"
67+
5. 选择解压后文件夹中的 `manifest.json` 文件
68+
69+
## Notes / 注意事项
70+
71+
- For Chrome/Edge/360: The extension will need to be re-enabled after browser restart
72+
- Firefox: The extension will need to be re-installed after browser restart
73+
- All data is stored locally in your browser
74+
75+
---
76+
77+
- Chrome/Edge/360:浏览器重启后需要重新启用扩展
78+
- Firefox:浏览器重启后需要重新安装扩展
79+
- 所有数据都存储在本地浏览器中
4280

4381
### How to Use
4482

0 commit comments

Comments
 (0)