目前共有4篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
20 3
GitHub - e3kskoy7wqk/Firefox-for-windows-7: Firefox for windows 7
一派掌门 二十级
1楼 发表于:2026-1-22 13:15
GitHub - e3kskoy7wqk/Firefox-for-windows-7: Firefox for windows 7: Modern Firefox based web browser for Windows Vista & 7.
这是一个分叉自Mozilla官方Firefox源代码的项目。其开发者在Firefox 115之后,继续维护一个兼容旧系统的代码分支。
项目性质: Firefox官方代码的社区分支。它突破了Mozilla官方的支持截止日期,将Firefox的新功能、性能改进和安全补丁“移植”到了不再受官方支持的Windows平台上。
提供的成品: 项目提供完整的安装包和解压即用的便携版。这意味着Windows 7、8乃至Vista用户,可以像安装官方Firefox一样,安装并使用这个社区维护版,无缝获得接近官方最新版的浏览体验和安全保护,切实延续了Firefox的生命线。
————————————————
版权声明:本文为CSDN博主「allway2」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/allway2/article/details/156986635
一派掌门 二十级
2楼 发表于:2026-1-22 13:15
 
一派掌门 二十级
3楼 发表于:2026-1-22 13:21
里面有支付宝和微信的收款码,看起来是中国人做的。
 
一派掌门 二十级
4楼 发表于:2026-1-22 13:27

【火狐浏览器的编译方法】

Building

Bootstrap a copy of the Firefox source code

git clone https://github.com/mozilla-firefox/firefox.git

This repository contains patches for specific versions of Firefox, stored in directories named <DATE>.<commit_id>. Here, commit_id is the commit ID of Firefox, and DATE is purely for File Explorer.

cd firefox
git checkout <commit_id>
./mach bootstrap

Building Rust on Windows MSVC

To ensure that rustc always generates programs compatible with Windows 7, Rust needs to be patched. This repository contains files named Rust<rust_version>win7.diff for this purpose, where rust_version is the version of Rust used to build Firefox, as specified here. For detailed instructions on how to proceed, please refer to #75.

    Clone the source with git

    git clone https://github.com/rust-lang/rust.git
    cd rust
    git checkout <rust_version>

Apply patch

git apply --verbose --ignore-space-change Rust<rust_version>win7.diff

If you want to support Windows Vista, you also need to apply Rust<rust_version>vista.diff:

git apply --verbose --ignore-space-change Rust<rust_version>vista.diff

Build

python x.py build --target i686-pc-windows-msvc,x86_64-pc-windows-msvc
python x.py build library --target i686-pc-windows-msvc,x86_64-pc-windows-msvc

Compiling Cargo from Source

    Clone the source with git

    git clone https://github.com/rust-lang/cargo.git
    cd cargo

With cargo already installed by ./mach bootstrap, you can simply run:

cargo build --release

Apply patches

Navigate to the <DATE>.<commit_id> directory, modify the REPO_PATH variable in apply_patches.bat to the path of the Firefox source, and then double-click it to apply the patches.

Build Firefox

    Add our custom-built rustc.exe and cargo.exe to your PATH, delete or rename %USERPROFILE%\.rustup and %USERPROFILE%\.cargo, and remove any other instances of rustc.exe and cargo.exe from your PATH.

    mozconfig for i686-pc-windows-msvc:

    ac_add_options MOZ_TELEMETRY_REPORTING=1
    ac_add_options --with-redist=<CRT_LOCATION>
    export WIN_UCRT_REDIST_DIR=<UCRT_LOCATION>
    ac_add_options --disable-crashreporter
    ac_add_options --disable-sandbox
    ac_add_options --target=i686-pc-windows-msvc
    ac_add_options --enable-optimize
    ac_add_options --disable-tests
    ac_add_options MOZ_PGO=1
    ac_add_options --enable-clang-plugin
    export MOZ_LTO=cross
    ac_add_options --enable-js-shell
    ac_add_options --enable-rust-simd

mozconfig for x86_64-pc-windows-msvc:

ac_add_options MOZ_TELEMETRY_REPORTING=1
ac_add_options --with-redist=<CRT_LOCATION>
export WIN_UCRT_REDIST_DIR=<UCRT_LOCATION>
ac_add_options --disable-crashreporter
ac_add_options --target=x86_64-pc-windows-msvc
ac_add_options --enable-optimize
ac_add_options --disable-tests
ac_add_options MOZ_PGO=1
ac_add_options --enable-clang-plugin
export MOZ_LTO=cross
ac_add_options --enable-js-shell
ac_add_options --enable-rust-simd

./mach build
./mach package
./mach build installers-$AB_CD

 

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:20 回复数:3
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2026-1-22 13:27
 
©2010-2026 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。