Compare commits
57 Commits
v107.0.530
...
v109.0.541
Author | SHA1 | Date | |
---|---|---|---|
|
e7381936fe | ||
|
c3b8d405e1 | ||
|
5d0b72827e | ||
|
31dd53a306 | ||
|
0f16965303 | ||
|
ae23aa6a50 | ||
|
f8ca8ac409 | ||
|
e67921d3be | ||
|
2ed940ac6b | ||
|
8d94379ee0 | ||
|
880500e350 | ||
|
c2d9bd63c6 | ||
|
704b14ac14 | ||
|
99970aa83e | ||
|
2be587466f | ||
|
e6d5e6dbb0 | ||
|
6322e96a90 | ||
|
c7cfc1326e | ||
|
1e70336bec | ||
|
652a8977a1 | ||
|
7d8ef4250e | ||
|
7708decfcc | ||
|
46966bdcef | ||
|
4ff08df321 | ||
|
967b46c94f | ||
|
73d719f6db | ||
|
bf5dbce4be | ||
|
f3d1b4cc04 | ||
|
3d61c83219 | ||
|
99fc6289da | ||
|
946df3e35d | ||
|
c4f7fedb9a | ||
|
259d916fd8 | ||
|
a8ed4b9dd2 | ||
|
7a79901e2a | ||
|
d9d39e238b | ||
|
312a3dd9cc | ||
|
99c7eed766 | ||
|
6bf80440e1 | ||
|
7686c97268 | ||
|
a4abb945ef | ||
|
5258713cc6 | ||
|
8e00d11fc9 | ||
|
04c2891f63 | ||
|
4923c1bd3d | ||
|
ce6a6a21bd | ||
|
1a36777b32 | ||
|
dfe7692d80 | ||
|
e0ae9cdad0 | ||
|
a713e49b62 | ||
|
911e10dec7 | ||
|
9b0002223d | ||
|
b6c627c29f | ||
|
405be869fd | ||
|
aa646fed5d | ||
|
960c195a73 | ||
|
0622111b34 |
6
.github/workflows/build-images.yaml
vendored
6
.github/workflows/build-images.yaml
vendored
@@ -35,9 +35,9 @@ jobs:
|
|||||||
sudo rm -rf /usr/share/dotnet
|
sudo rm -rf /usr/share/dotnet
|
||||||
sudo rm -rf /usr/local/lib/android
|
sudo rm -rf /usr/local/lib/android
|
||||||
sudo rm -rf /opt/ghc
|
sudo rm -rf /opt/ghc
|
||||||
sudo apt-get remove google-cloud-sdk azure-cli hhvm google-chrome-stable \
|
sudo apt-get remove google-cloud-sdk azure-cli google-chrome-stable \
|
||||||
firefox mysql-server-core-8.0 mono-devel mongodb-org-server podman mongodb-org-mongos \
|
firefox mysql-server-core-8.0 mono-devel podman \
|
||||||
powershell dotnet-runtime-3.1 dotnet-runtime-5.0 dotnet-sdk-3.1 dotnet-sdk-5.0
|
powershell
|
||||||
sudo apt-get autoremove
|
sudo apt-get autoremove
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
|
138
.github/workflows/check_git_apply.yaml
vendored
Normal file
138
.github/workflows/check_git_apply.yaml
vendored
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
name: Check git apply
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
rtag:
|
||||||
|
description: 'uazo/bromite TAG or COMMIT'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
branch:
|
||||||
|
description: 'uazo/bromite BRANCH'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
BROMITE_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
USEINTERNALNETWORK: false # CUSTOM RUNNER: create the docker network as internal
|
||||||
|
REMOVEDOCKERSUPPORT: false # CUSTOM RUNNER: remove sharing of docker socket
|
||||||
|
https_proxy: http://172.18.0.1:8118
|
||||||
|
http_proxy: http://172.18.0.1:8118
|
||||||
|
jobs:
|
||||||
|
get-git-apply:
|
||||||
|
runs-on: ci
|
||||||
|
container:
|
||||||
|
image: uazo/build-deps:latest
|
||||||
|
env:
|
||||||
|
GITHUB_SHA: ${{ github.event.inputs.rtag }}
|
||||||
|
USELOCALIMAGE: true # CUSTOM RUNNER: permit use of local images
|
||||||
|
REMOVEDOCKERSUPPORT: false # CUSTOM RUNNER: remove sharing of docker socket
|
||||||
|
volumes:
|
||||||
|
- /tmp/proxy:/tmp/proxy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Prepare container
|
||||||
|
run: |
|
||||||
|
sudo chown lg /etc/apt/apt.conf.d/proxy.conf
|
||||||
|
sudo chown lg .
|
||||||
|
sudo echo Acquire::http::Proxy \"http://172.18.0.1:8118\"\; >/etc/apt/apt.conf.d/proxy.conf
|
||||||
|
#export HTTPS_PROXY=http://172.18.0.1:8118
|
||||||
|
#export HTTP_PROXY=http://172.18.0.1:8118
|
||||||
|
#export http_proxy=http://172.18.0.1:8118
|
||||||
|
#export https_proxy=http://172.18.0.1:8118
|
||||||
|
|
||||||
|
sudo chmod 777 /__w/_temp
|
||||||
|
|
||||||
|
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
|
||||||
|
sudo dpkg -i packages-microsoft-prod.deb
|
||||||
|
rm packages-microsoft-prod.deb
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y wget unzip tar sed dos2unix patchutils wiggle curl nano aspnetcore-runtime-6.0
|
||||||
|
|
||||||
|
wget https://github.com/uazo/superpatch/releases/latest/download/SuperPatchUtils.tar.gz
|
||||||
|
tar xfz SuperPatchUtils.tar.gz
|
||||||
|
rm SuperPatchUtils.tar.gz
|
||||||
|
|
||||||
|
git clone https://github.com/uazo/bromite-buildtools
|
||||||
|
|
||||||
|
#wget https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
|
||||||
|
#unzip pup_v0.4.0_linux_amd64.zip
|
||||||
|
#rm pup_v0.4.0_linux_amd64.zip
|
||||||
|
#BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$GITHUB_SHA | ./pup -p li.branch:last-child a text{})
|
||||||
|
|
||||||
|
test -d /github/home/.vscode-server || sudo mkdir /github/home/.vscode-server
|
||||||
|
sudo chown lg /github/home/.vscode-server
|
||||||
|
|
||||||
|
- name: Checkout 'uazo/bromite'
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: 'uazo/bromite'
|
||||||
|
ref: ${{ github.event.inputs.rtag }}
|
||||||
|
path: 'bromite'
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Create chromium sources
|
||||||
|
run: |
|
||||||
|
#sleep 2h
|
||||||
|
VERSION=$(cat bromite/build/RELEASE)
|
||||||
|
./bin/SuperPatchUtils bromite $BROMITE_SHA chromium/src
|
||||||
|
|
||||||
|
cd chromium/src
|
||||||
|
git init
|
||||||
|
git config user.email "you@example.com"
|
||||||
|
git config user.name "Your Name"
|
||||||
|
git add .
|
||||||
|
git commit -m $VERSION
|
||||||
|
git tag -a $VERSION -m $VERSION
|
||||||
|
|
||||||
|
- name: Apply patches ${{ github.event.inputs.rtag }}
|
||||||
|
run: |
|
||||||
|
export HOME=$(pwd)
|
||||||
|
cd ~/chromium/src
|
||||||
|
|
||||||
|
export SILENT=true
|
||||||
|
export CGA_REMOTE=true
|
||||||
|
export SKIPAUTOGENERATED=true
|
||||||
|
bash ~/bromite-buildtools/apply-all-patch.sh || sleep 23h || true
|
||||||
|
|
||||||
|
rm -rf ~/bromite/build/patches-new/
|
||||||
|
rm ~/bromite/build/bromite_patches_list_new.txt
|
||||||
|
|
||||||
|
- name: Export patches
|
||||||
|
run: |
|
||||||
|
export HOME=$(pwd)
|
||||||
|
|
||||||
|
cd ~/chromium/src
|
||||||
|
bash ~/bromite-buildtools/export-all-patch.sh
|
||||||
|
|
||||||
|
cd ~/bromite
|
||||||
|
rm -rf build/patches/*
|
||||||
|
mv build/patches-new/* build/patches
|
||||||
|
rm -rf build/patches-new/
|
||||||
|
|
||||||
|
- name: Check differences CHANGES=${{ env.CHANGES }}
|
||||||
|
run: |
|
||||||
|
cd bromite
|
||||||
|
CHANGES=0 && git diff --quiet || CHANGES=1
|
||||||
|
|
||||||
|
if [[ CHANGES -eq 1 ]]; then
|
||||||
|
git add build/patches/*.patch
|
||||||
|
git diff --name-only --staged
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@dcd5fd746d53dd8de555c0f10bca6c35628be47a #v3.12.0
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.BROMITE_PULLS_PAT }}
|
||||||
|
path: bromite
|
||||||
|
base: ${{ github.event.inputs.branch }}
|
||||||
|
add-paths: |
|
||||||
|
build/patches/*.patch
|
||||||
|
commit-message: 'AUTOMATED - git apply results'
|
||||||
|
title: Git apply result for ${{ github.event.inputs.branch }} branch
|
||||||
|
body: ${{ env.MESSAGE }}
|
||||||
|
delete-branch: true
|
||||||
|
branch-suffix: short-commit-hash
|
17
.github/workflows/release.yaml
vendored
17
.github/workflows/release.yaml
vendored
@@ -58,9 +58,9 @@ jobs:
|
|||||||
|
|
||||||
cd bromite
|
cd bromite
|
||||||
|
|
||||||
GH=gh_2.18.1_linux_amd64/bin/gh
|
GH=gh_2.21.1_linux_amd64/bin/gh
|
||||||
wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
|
wget https://github.com/cli/cli/releases/download/v2.21.1/gh_2.21.1_linux_amd64.tar.gz
|
||||||
tar xfz gh_2.18.1_linux_amd64.tar.gz
|
tar xfz gh_2.21.1_linux_amd64.tar.gz
|
||||||
|
|
||||||
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
|
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
|
||||||
|
|
||||||
@@ -79,11 +79,13 @@ jobs:
|
|||||||
$GH release upload $VERSION-$BROMITE_SHA $APK
|
$GH release upload $VERSION-$BROMITE_SHA $APK
|
||||||
|
|
||||||
echo Uploading chrome.size
|
echo Uploading chrome.size
|
||||||
$GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size
|
test $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size && \
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA $OUTPUTFILE/chrome.size
|
||||||
|
|
||||||
echo Uploading arm64_ninja_log_trace.html
|
echo Uploading arm64_ninja_log_trace.html
|
||||||
cp $OUTPUTFILE/ninja_log_trace.html arm64_ninja_log_trace.html
|
test $OUTPUTFILE/ninja_log_trace.html && \
|
||||||
$GH release upload $VERSION-$BROMITE_SHA arm64_ninja_log_trace.html
|
cp $OUTPUTFILE/ninja_log_trace.html arm64_ninja_log_trace.html && \
|
||||||
|
$GH release upload $VERSION-$BROMITE_SHA arm64_ninja_log_trace.html
|
||||||
|
|
||||||
# windows
|
# windows
|
||||||
mkdir chrome-win/
|
mkdir chrome-win/
|
||||||
@@ -119,6 +121,9 @@ jobs:
|
|||||||
|
|
||||||
echo Uploading chrome-win.zip
|
echo Uploading chrome-win.zip
|
||||||
$GH release upload $VERSION-$BROMITE_SHA chrome-win.zip
|
$GH release upload $VERSION-$BROMITE_SHA chrome-win.zip
|
||||||
|
|
||||||
|
# workaround for https://github.com/cli/cli/issues/6599
|
||||||
|
sleep 30s
|
||||||
|
|
||||||
TIMESTAMP=$(date +%s -r chrome-win.zip)
|
TIMESTAMP=$(date +%s -r chrome-win.zip)
|
||||||
echo >updateurl.txt "browser=chromium;os=windows;architecture=64-bit;timestamp=$TIMESTAMP;editor=uazo;channel=stable;repository=https://github.com/uazo/bromite-buildtools/releases;download=https://github.com/uazo/bromite-buildtools/releases/latest/download/chrome-win.zip;version=$(cat $WINOUT/RELEASE);revision=1;commit=$BROMITE_SHA"
|
echo >updateurl.txt "browser=chromium;os=windows;architecture=64-bit;timestamp=$TIMESTAMP;editor=uazo;channel=stable;repository=https://github.com/uazo/bromite-buildtools/releases;download=https://github.com/uazo/bromite-buildtools/releases/latest/download/chrome-win.zip;version=$(cat $WINOUT/RELEASE);revision=1;commit=$BROMITE_SHA"
|
||||||
|
27
README.md
27
README.md
@@ -64,3 +64,30 @@ drwxr-xr-x 3 root root 4096 Oct 5 13:20 'Windows Kits'
|
|||||||
cd bromite-buildtools/images/github-runner/
|
cd bromite-buildtools/images/github-runner/
|
||||||
./start-runner.sh
|
./start-runner.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Test Android Version
|
||||||
|
|
||||||
|
Simply download latest build on https://github.com/uazo/bromite-buildtools/releases/latest
|
||||||
|
|
||||||
|
### Test Windows Version
|
||||||
|
|
||||||
|
1. Download https://github.com/henrypp/chrlauncher/releases
|
||||||
|
2. Create a `chrlauncher.ini`
|
||||||
|
|
||||||
|
```
|
||||||
|
[chrlauncher]
|
||||||
|
|
||||||
|
# Custom Chromium update URL (string):
|
||||||
|
ChromiumUpdateUrl=https://github.com/uazo/bromite-buildtools/releases/latest/download/updateurl.txt
|
||||||
|
|
||||||
|
# Command line for Chromium (string):
|
||||||
|
# See here: http://peter.sh/experiments/chromium-command-line-switches/
|
||||||
|
ChromiumCommandLine=--user-data-dir=".\User Data" --no-default-browser-check
|
||||||
|
|
||||||
|
# Chromium executable file name (string):
|
||||||
|
ChromiumBinary=chrome.exe
|
||||||
|
|
||||||
|
# Chromium binaries directory (string):
|
||||||
|
# Relative (to chrlauncher directory) or full path (env. variables supported).
|
||||||
|
ChromiumDirectory=.\bin
|
||||||
|
```
|
||||||
|
@@ -10,6 +10,7 @@ if(getenv("TARGET_CPU") != "") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (target_os == "android") {
|
if (target_os == "android") {
|
||||||
|
target_os = "android" # fix traffic annotation auditor
|
||||||
enable_kythe_annotations = true
|
enable_kythe_annotations = true
|
||||||
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
chrome_public_manifest_package = "org.bromite.bromite.dev"
|
||||||
|
|
||||||
@@ -33,9 +34,15 @@ if (target_os == "android") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (target_os == "win") {
|
if (target_os == "win") {
|
||||||
|
target_os = "win" # fix traffic annotation auditor
|
||||||
target_cpu = "x64"
|
target_cpu = "x64"
|
||||||
symbol_level = 0
|
symbol_level = 0
|
||||||
use_large_pdbs = true
|
use_large_pdbs = true
|
||||||
|
|
||||||
|
enable_pdf = true
|
||||||
|
pdf_is_complete_lib = true
|
||||||
|
enable_plugins = true
|
||||||
|
enable_ppapi = false
|
||||||
|
|
||||||
is_cfi = false # disable it
|
is_cfi = false # disable it
|
||||||
use_cfi_cast = false # disable it
|
use_cfi_cast = false # disable it
|
||||||
|
@@ -16,7 +16,7 @@ RUN dpkg --add-architecture i386
|
|||||||
|
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential lib32gcc-9-dev g++-multilib
|
apt-get -f -y install sudo lsb-release cl-base64 bash wget apt-utils python sed tzdata build-essential lib32gcc-9-dev g++-multilib dos2unix wiggle
|
||||||
|
|
||||||
ENV user lg
|
ENV user lg
|
||||||
|
|
||||||
@@ -40,5 +40,7 @@ RUN wget https://raw.githubusercontent.com/chromium/chromium/$VERSION/build/inst
|
|||||||
chmod +x ./install-build-deps.sh && \
|
chmod +x ./install-build-deps.sh && \
|
||||||
chmod +x ./install-build-deps-android.sh && \
|
chmod +x ./install-build-deps-android.sh && \
|
||||||
sudo ./install-build-deps.sh --no-prompt --lib32 --no-chromeos-fonts && \
|
sudo ./install-build-deps.sh --no-prompt --lib32 --no-chromeos-fonts && \
|
||||||
sudo ./install-build-deps-android.sh --no-prompt
|
sudo ./install-build-deps-android.sh --no-prompt && \
|
||||||
|
sudo mkdir -p /github/home/.vscode-server && \
|
||||||
|
sudo chown lg /github/home/.vscode-server
|
||||||
|
|
||||||
|
@@ -109,10 +109,10 @@ RUN chmod +x ./patched/runsvc.sh /usr/local/bin/startup.sh
|
|||||||
|
|
||||||
USER runner
|
USER runner
|
||||||
|
|
||||||
ENV HTTP_PROXY="http://127.0.0.1:8118"
|
ENV HTTP_PROXY="http://172.18.0.1:8118"
|
||||||
ENV HTTPS_PROXY="http://127.0.0.1:8118"
|
ENV HTTPS_PROXY="http://172.18.0.1:8118"
|
||||||
ENV http_proxy="http://127.0.0.1:8118"
|
ENV http_proxy="http://172.18.0.1:8118"
|
||||||
ENV https_proxy="http://127.0.0.1:8118"
|
ENV https_proxy="http://172.18.0.1:8118"
|
||||||
COPY docker.default /etc/default/docker
|
COPY docker.default /etc/default/docker
|
||||||
COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf
|
COPY proxy.conf /etc/apt/apt.conf.d/proxy.conf
|
||||||
|
|
||||||
|
@@ -1 +1 @@
|
|||||||
Acquire::http::Proxy "http://127.0.0.1:8118";
|
Acquire::http::Proxy "http://172.18.0.1:8118";
|
||||||
|
Reference in New Issue
Block a user