-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test * update firefox version * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * test github action * update * update * test * update download-firefix.sh * update * update * 使用 prettier 格式化代码 * 调整打包脚本 * update changelog * update README.md * update * update CHANGELOG * update * update tools/README.md * update tools/README.md * update tools/README.md * update changelog * update changelog * update CHANGELOG * fix format code error * update firefox-web-ext.sh * update firefox-web-ext.sh * update firefox-web-ext.sh * update update-v3-manifest.py * update update-v3-manifest.py * update build.yaml * update action config * update action config * update action config * 测试 headless 模式 * update * update * update * update
- Loading branch information
1 parent
0c857f2
commit 3082035
Showing
36 changed files
with
579 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: linux-x86_64 | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
linux-x86_64: | ||
if: github.ref == 'refs/heads/dev' || github.ref_name == 'dev' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare Source Code | ||
run: | | ||
echo $PATH | ||
env | ||
docker info | ||
id -u | ||
id -g | ||
who | ||
cat /etc/os-release | ||
hostnamectl | ||
uname -s | ||
uname -m | ||
uname -r | ||
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c | ||
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l | ||
cat /proc/cpuinfo | grep "cpu cores" | uniq | ||
cat /proc/cpuinfo| grep "processor"| wc -l | ||
lscpu | ||
export IPV6=$(ip -6 address show | grep inet6 | awk '{print $2}' | cut -d'/' -f1 | sed -n '2p') | ||
export IPV4=$(ip -4 address show | grep inet | grep -v 127.0.0 | awk '{print $2}' | cut -d'/' -f1 | sed -n '1p') | ||
echo $IPV4 | ||
echo $IPV6 | ||
echo "X_IPV6=${IPV6}" >> $GITHUB_ENV | ||
echo "X_IPV4=${IPV4}" >> $GITHUB_ENV | ||
sudo apt install -y jq curl | ||
echo ${{ env.BRANCH_NAME }} | ||
echo ${{ github.actor }} | ||
echo ${{ github.repository }} | ||
echo ${{ github.repository_owner }} | ||
echo ${{ github.head_ref }} | ||
echo ${{ github.ref_name }} | ||
# sudo sed -i "[email protected]@azure.archive.ubuntu.com@g" /etc/apt/sources.list | ||
# sudo sed -i "[email protected]@azure.archive.ubuntu.com@g" /etc/apt/sources.list | ||
sudo apt install -y supervisor socat | ||
- name: Prepare Chromium Run Environment | ||
run: | | ||
set -x | ||
curl https://chromium.googlesource.com/chromium/src/+/refs/heads/main/build/install-build-deps.sh?format=TEXT | base64 --decode > install-build-deps.sh | ||
curl https://chromium.googlesource.com/chromium/src/+/refs/heads/main/build/install-build-deps.py?format=TEXT | base64 --decode > install-build-deps.py | ||
sudo python3 install-build-deps.py | ||
- name: Download Chromium | ||
run: | | ||
set -x | ||
bash tools/download-chromium.sh | ||
- name: Download Firefox | ||
shell: bash | ||
run: | | ||
set -x | ||
bash tools/download-firefox.sh | ||
- name: Chromium Load Extension | ||
run: | | ||
set -x | ||
# bash tools/chromium.sh --xvfb | ||
# bash tools/chromium.sh --headless | ||
- name: Firefox Load Extension | ||
run: | | ||
set -x | ||
# bash tools/firefox.sh --xvfb | ||
# bash tools/firefox.sh --headless |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: macos-x86_64 | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
macos-x86_64: | ||
if: github.ref == 'refs/heads/dev' || github.ref_name == 'dev' | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare build environment | ||
run: | | ||
env | ||
echo $HOME | ||
brew config | ||
brew install wget curl | ||
softwareupdate --list --verbose | ||
ls -lh $(xcrun --show-sdk-path) | ||
ifconfig | ||
export IPV6=$(ifconfig en0 | grep "inet6 " | grep -v "inet6 fe80:" | awk '{print $2}' | cut -d'/' -f1 | sed -n '2p') | ||
export IPV4=$(ifconfig en0 | grep "inet " | grep -v 127.0.0 | awk '{print $2}' | cut -d'/' -f1 | sed -n '1p') | ||
echo $IPV4 | ||
echo $IPV6 | ||
echo "X_IPV6=${IPV6}" >> $GITHUB_ENV | ||
echo "X_IPV4=${IPV4}" >> $GITHUB_ENV | ||
echo ${{ env.BRANCH_NAME }} | ||
echo ${{ github.actor }} | ||
echo ${{ github.repository }} | ||
echo ${{ github.repository_owner }} | ||
echo ${{ github.head_ref }} | ||
echo ${{ github.ref_name }} | ||
- name: Prepare Chromium Run Environment | ||
run: | | ||
set -x | ||
- name: Download Chromium | ||
run: | | ||
set -x | ||
bash tools/download-chromium.sh | ||
- name: Download Firefox | ||
shell: bash | ||
run: | | ||
set -x | ||
bash tools/download-firefox.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: windows-x86_64 | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
|
||
jobs: | ||
windows: | ||
if: github.ref == 'refs/heads/dev' || github.ref_name == 'dev' | ||
runs-on: windows-latest | ||
steps: | ||
- name: Prepare git | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
env | ||
ipconfig | ||
uname -a | ||
pwd | ||
ipconfig /all | ||
- uses: actions/checkout@v3 | ||
- name: Prepare Chromium Run Environment | ||
run: | | ||
ipconfig /all | ||
- name: Download Chromium | ||
shell: bash | ||
run: | | ||
set -x | ||
bash tools/download-chromium.sh | ||
- name: Download Firefox | ||
shell: bash | ||
run: | | ||
set -x | ||
bash tools/download-firefox.sh | ||
# https://www.msys2.org/docs/ci/ | ||
# https://github.com/marketplace/actions/setup-msys2 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: UCRT64 | ||
update: true | ||
install: git mingw-w64-ucrt-x86_64-gcc | ||
|
||
- name: CI-Build | ||
shell: msys2 {0} | ||
run: | | ||
echo 'Running in MSYS2!' | ||
echo "C:\\msys64\\usr\\bin" >> $GITHUB_PATH | ||
echo "C:\\msys64\\mingw64\\bin" >> $GITHUB_PATH | ||
echo "PKG_CONFIG_PATH=/mingw64/lib/pkgconfig" >> $GITHUB_ENV | ||
- name: test powershell use msys2 | ||
shell: powershell | ||
run: msys2 -c 'uname -a' | ||
|
||
- name: test cmd use msys2 | ||
shell: cmd | ||
run: msys2 -c 'uname -a' | ||
|
||
- name: Test | ||
shell: cmd | ||
run: | | ||
@chcp 65001>nul | ||
echo foo=bar >> %GITHUB_OUTPUT% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# 启用同时支持 chromium 和 firefox | ||
# v2版本同时支持 chromium 和 firefox | ||
|
||
## 发现 v2 版本功能齐全,具有 WebUI 的的扩展 [HeaderEditor](https://github.com/FirefoxBar/HeaderEditor.git) | ||
|
||
## v2 版本扩展支持 chromium 内核版本 49 | ||
|
||
## v2 版本 与 v3 最大的区别: | ||
|
||
> V3 版本不允许通过 javascript 脚本 动态 http 的修改请求头和响应头 | ||
> V3 版本不允许使用 javascript 脚本 动态修改 HTTP 请求头和响应头 | ||
## [WebExtensions incognito](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/incognito) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.