mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +00:00
Temporary fix to opening extensions (#34) and added update server support
This commit is contained in:
21
.github/workflows/alpha.yml
vendored
21
.github/workflows/alpha.yml
vendored
@@ -580,25 +580,20 @@ jobs:
|
||||
- name: List
|
||||
run: find .
|
||||
|
||||
- name: Checkout tools repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: zen-browser/desktop
|
||||
path: updates
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Pull tools repo
|
||||
run: git pull && git checkout main
|
||||
- name: Clone updates repo
|
||||
run: git clone https://github.com/zen-browser/updates-server.git
|
||||
|
||||
- name: Copy update manifests
|
||||
run: |
|
||||
mkdir -p updates/updates
|
||||
cp -a linux_update_manifest/. updates/updates/
|
||||
cp -a windows_update_manifest/. updates/updates/
|
||||
cd updates-server
|
||||
mkdir -p updates
|
||||
cp -a ../linux_update_manifest/. updates/
|
||||
cp -a ../windows_update_manifest/. updates/
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 🔖 Upload update manifests ${{ needs.build-data.outputs.version }}
|
||||
commit_user_name: Zen Browser Robot
|
||||
commit_user_email: zen-browser-bot@users.noreply.github.com
|
||||
repository: ./updates
|
||||
repository: ./updates-server
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
# Browser branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
ac_add_options --with-ccache=sccache
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
|
||||
# ac_add_options --with-branding=beta
|
||||
@@ -28,5 +27,14 @@ export MOZ_SOURCE_CHANGESET=${changeset}
|
||||
|
||||
ac_add_options --enable-bootstrap
|
||||
|
||||
ac_add_options --enable-application=browser
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --with-ccache=sccache
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --enable-updater
|
||||
|
||||
# ALWAYS MANTAIN ONE LINE BREAK AT THE END OF THIS FILE
|
||||
|
||||
|
@@ -1,12 +1,12 @@
|
||||
# Optimise builds
|
||||
ac_add_options --enable-application=browser
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --with-ccache=sccache
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --enable-updater
|
||||
# ac_add_options --enable-application=browser
|
||||
# ac_add_options --enable-hardening
|
||||
# ac_add_options --enable-rust-simd
|
||||
# ac_add_options --enable-release
|
||||
# ac_add_options --enable-optimize
|
||||
# ac_add_options --with-ccache=sccache
|
||||
# ac_add_options --disable-debug
|
||||
# ac_add_options --enable-updater
|
||||
|
||||
# Disable telemetry and tracking
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=
|
||||
|
@@ -5,12 +5,10 @@
|
||||
"binaryName": "zen",
|
||||
"version": {
|
||||
"product": "firefox",
|
||||
"version": "127.0.2",
|
||||
"displayVersion": "1.0.0"
|
||||
"version": "127.0.2"
|
||||
},
|
||||
"buildOptions": {
|
||||
"generateBranding": true,
|
||||
"windowsUseSymbolicLinks": false
|
||||
"generateBranding": true
|
||||
},
|
||||
"addons": {},
|
||||
"brands": {
|
||||
@@ -46,5 +44,6 @@
|
||||
".*\\.json"
|
||||
],
|
||||
"licenseType": "MPL-2.0"
|
||||
}
|
||||
},
|
||||
"updateHostname": "zen-updates.vercel.app"
|
||||
}
|
@@ -51,6 +51,11 @@ button {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#theme .card[disabled="true"] {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.cardGroup {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
@@ -134,11 +134,18 @@ class Themes extends Page {
|
||||
container.classList.add('card');
|
||||
container.classList.add('card-no-hover');
|
||||
|
||||
if (theme.id == "firefox-compact-dream@mozilla.org" || theme.id == "firefox-compact-galaxy@mozilla.org") {
|
||||
container.setAttribute('disabled', 'true')
|
||||
}
|
||||
|
||||
if (theme.isActive) {
|
||||
container.classList.add('selected')
|
||||
}
|
||||
|
||||
container.addEventListener('click', () => {
|
||||
if (container.hasAttribute('disabled')) {
|
||||
return
|
||||
}
|
||||
document.body.classList.add('normal-background');
|
||||
themeElements.forEach((el) => el.classList.remove('selected'))
|
||||
container.classList.add('selected')
|
||||
|
15
src/gfx/wr/webrender/src/util-rs.patch
Normal file
15
src/gfx/wr/webrender/src/util-rs.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/gfx/wr/webrender/src/util.rs b/gfx/wr/webrender/src/util.rs
|
||||
index fa02d87b91c961c08da1a03357f514c71e508476..1d5ca171b7ac5c4369299a1623021279fd8801ad 100644
|
||||
--- a/gfx/wr/webrender/src/util.rs
|
||||
+++ b/gfx/wr/webrender/src/util.rs
|
||||
@@ -164,7 +164,9 @@ impl ScaleOffset {
|
||||
m.m34.abs() > NEARLY_ZERO ||
|
||||
m.m43.abs() > NEARLY_ZERO ||
|
||||
(m.m44 - 1.0).abs() > NEARLY_ZERO {
|
||||
- return None;
|
||||
+ // Ignore this error, this change fixes the bug that crashes when opening an extension popup
|
||||
+ printf("zen bug: Not a pure scale / translation");
|
||||
+ //return None;
|
||||
}
|
||||
|
||||
Some(ScaleOffset {
|
Reference in New Issue
Block a user