Skip to content

[Feature]: 建议Windows版本能自定义可选引擎和软件设置的存储位置以及支持自定义设置代理 #879

Open

Description

@xiao123yao123

What would you like Filee to do?

Windows版本软件有便携版本,就是为了方便软件可以放在可移动设备,随时都能可用。可选引擎的存放位置和软件设置的位置最好能让用户更改设置,不要总是存放在操作系统的用户文件夹,那里已经特别臃肿了。

Why / when would you use it?

鉴于中国地区不是很方便能随时随地连到github,希望软件能设置代理访问的功能。

Ideas for how it could work

No response

Activity

  1. KnifeLemon commented on Oct 31, 2026

    @KnifeLemon
    Owner

    感谢建议,@xiao123yao123!

    1. 设置和引擎的存放位置:现在已经可以

    设置环境变量 FILEE_DATA_DIR 指向一个文件夹(例如 U 盘上的 D:\FileeData),Filee 会把设置和下载的引擎(在其中的 engines 子文件夹)都放在那里,不再写入用户文件夹。

    • 例如做一个 Filee.cmd 放在便携版旁边:
      @echo off
      set FILEE_DATA_DIR=%~dp0data
      start "" "%~dp0Filee.exe"
    • 注意:用这种方式启动的 Filee 不会注册右键菜单和开机启动,这样不会覆盖已安装的 Filee。

    这目前只写在开发者文档里。是否在便携版里提供“数据放在程序旁边”的选项,我们会在这个 issue 里继续讨论。

    2. 代理

    Filee 下载引擎时会使用 Windows 系统代理设置(设置 → 网络和 Internet → 代理),也会读取 HTTPS_PROXY 环境变量。所以只要系统里设置了代理,Filee 就会走代理。

    在 Filee 里单独设置代理的选项目前还没有,我保留这个 issue。另外,自定义下载镜像的需求见 #447。


    Thanks for the suggestions!

    1. Storage location: set the FILEE_DATA_DIR environment variable to a folder (for example on a USB drive) and Filee keeps its settings and downloaded engines (in an engines subfolder) there. A small Filee.cmd next to the portable copy can set it (see above). A copy started this way doesn't register the context menu or startup entry, so it won't replace an installed Filee. This is only documented for developers today; a "keep data next to the app" option for the portable build stays open here.
    2. Proxy: engine downloads use the Windows system proxy settings and the HTTPS_PROXY environment variable. An in-app proxy field doesn't exist yet; keeping this open for it. Mirrors: see 引擎导入导出 #447.
  2. xiao123yao123 commented on Oct 31, 2026

    @xiao123yao123
    Author

    谢谢。
    1,便携版的目的就是为了方便随时随处可用,建议程序加入启动配置文件,可以在配置文件定义一些环境变量。
    2,程序能单独设置代理其实很有必要,系统层面的代理很不方便,使用代理主要目的是为了分流。在中国大陆地区,当程序连接github时,可能会出现无法正常通信的问题,只好使用代理连接,但是绝大多数的网络数据包还是直接通过正常的网络收发。这就产生了只有访问一小部分网络服务器需要代理,但是访问其他的网络服务器不需要代理的需求。如果使用操作系统的代理设定,那就使所有的网络数据包都需要通过代理,会浪费代理的流量。

  3. KnifeLemon commented on Oct 31, 2026

    @KnifeLemon
    Owner

    谢谢详细说明,两点都明白了。

    代理只给 Filee 用(分流)

    其实现在就可以只让 Filee 走代理:HTTPS_PROXY 环境变量只在启动 Filee 的那个 .cmd 里设置,就只对 Filee 生效,不会改变 Windows 的系统代理,其他程序照常直连。

    @echo off
    set FILEE_DATA_DIR=%~dp0data
    set HTTPS_PROXY=http://127.0.0.1:7890
    start "" "%~dp0Filee.exe"
    • 把 127.0.0.1:7890 换成你的代理地址和端口。
    • Filee 下载引擎、检查更新都会走这个代理;Windows 和其他程序不受影响。
    • 如果已经有一个 Filee 在运行,请先退出它,再用这个 .cmd 启动。

    便携版的配置文件

    明白:便携版应该不用额外的 .cmd,放在 U 盘上直接运行就把数据放在程序旁边,最好也能在配置文件里写代理。这个合理,我保留这个 issue 跟进。在那之前,上面的 .cmd 是可用的办法。


    Thanks, both points are clear.

    Proxy for Filee only (split routing): this works today. Set HTTPS_PROXY only in the .cmd that starts Filee (example above): it applies to Filee alone and doesn't touch the Windows system proxy, so everything else stays direct. Engine downloads and update checks go through it. If a Filee is already running, quit it first.

    A config file for the portable build: agreed that the portable copy should keep its data next to the app, and ideally read a proxy from a config file, without a launcher. Keeping this open for it; until then the .cmd above does the job.

  4. KnifeLemon commented on Nov 6, 2026

    @KnifeLemon
    Owner

    An update: #1196 proposes the part still open here, a portable copy that keeps its data next to the app, with a filee.portable marker file. Please follow it there.

    A proxy in a config file isn't part of that proposal, so this stays open for it. Until then, HTTPS_PROXY in the .cmd above still works.


    更新:#1196 提出了这里还没解决的部分:便携版把数据放在程序旁边,用一个 filee.portable 标记文件开启,请在那里跟进。

    在配置文件里写代理不在那个提议里,所以这个 issue 继续保留。在那之前,上面 .cmd 里的 HTTPS_PROXY 仍然可用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions