Files
94375d12f7 chore: sync develop onto main after accidental main merges (#464)
* feat(desktop): Octop 桌面客户端 (#462)

* feat: add multi-platform green portable packaging

Ship relocatable Octop-<plat>.zip via scripts/green (portable CPython,
frozen uv.lock deps, Windows pywin32 DLL fix) and octop-portable.yml.
No OOB overlay or product trimming; first run uses upstream setup.

Co-authored-by: Harry <forcemeter@users.noreply.github.com>

* feat(desktop): Wails v3 shell with green portable under ~/.octop

Move green packaging to desktop/portable, add a Wails v3 client that
downloads Octop-<plat>.zip, spawns launch.py with OCTOP_HOME=~/.octop,
and exposes locale/theme/autostart/tray/macOS caffeinate settings.
Green upgrades install into packages via OCTOP_GREEN_PACKAGES.

Co-authored-by: Harry <forcemeter@users.noreply.github.com>

* fix(desktop): add Wails v3 Taskfile and build/config.yml

wails3 build/dev look for Taskfile.yml and build/config.yml in
desktop/src. Un-ignore that tree from the repo-wide build/ gitignore.

Co-authored-by: Harry <forcemeter@users.noreply.github.com>

* 初始化桌面客户端

* add drag and toggle

* add prevent sleep

* update

* change dock icon

* clean package/useless files

* add Attach zips to GitHub Release

* pack file into windows bin-file

* Packages a production app

* chanage workflow name

* chanage workflow name

* linux package in single ifle

* linux package in single ifle

* 在浏览器中打开_blank 的链接

* upgrade python to 3.12

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Harry <forcemeter@users.noreply.github.com>
Co-authored-by: 杨树海 <yangshuhai@pdnews.cn>

* ci: cascade desktop package on release and stop all-branch builds (#463)

Auto Tag dispatches Octop Desktop with Release/Docker. Restrict
octop-desktop.yml to v* tags + workflow_dispatch only.

Co-authored-by: jubaoliang <jubaoliang@tencent.com>

---------

Co-authored-by: Harry <56063441+forcemeter@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Harry <forcemeter@users.noreply.github.com>
Co-authored-by: 杨树海 <yangshuhai@pdnews.cn>
Co-authored-by: jubaoliang <jubaoliang@tencent.com>
2026-08-27 19:50:13 +08:00

56 lines
1.8 KiB
Makefile

# Standalone Makefile for green portable packaging.
# Does not modify the repo-root Makefile — merge-friendly with upstream.
#
# Usage (from repo root):
# make -f desktop/portable/Makefile green
# make -f desktop/portable/Makefile green GREEN_PLAT=linux-amd64
# make -f desktop/portable/Makefile green-linux
# make -f desktop/portable/Makefile clean
SHELL := /bin/bash
REPO_ROOT := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/../..)
GREEN_PLAT ?=
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Green portable (offline zip)"
@echo " make -f desktop/portable/Makefile green # host plat zip"
@echo " make -f desktop/portable/Makefile green GREEN_PLAT=…"
@echo " make -f desktop/portable/Makefile bootstrap|wheels|package|green-linux|clean"
.PHONY: bootstrap
bootstrap:
bash $(REPO_ROOT)/desktop/portable/bootstrap-runtime.sh $(GREEN_PLAT)
.PHONY: wheels
wheels:
bash $(REPO_ROOT)/desktop/portable/vendor-wheels.sh $(GREEN_PLAT)
.PHONY: package
package:
bash $(REPO_ROOT)/desktop/portable/package.sh $(GREEN_PLAT)
.PHONY: green
green:
$(MAKE) -C $(REPO_ROOT) build-frontend
bash $(REPO_ROOT)/desktop/portable/bootstrap-runtime.sh $(GREEN_PLAT)
bash $(REPO_ROOT)/desktop/portable/package.sh $(GREEN_PLAT)
@echo "[green] Done. Zips under $(REPO_ROOT)/desktop/portable/release/"
.PHONY: green-linux
green-linux:
$(MAKE) -C $(REPO_ROOT) build-frontend
bash $(REPO_ROOT)/desktop/portable/package-linux-docker.sh $(if $(GREEN_PLAT),$(GREEN_PLAT),linux-amd64)
.PHONY: clean
clean:
rm -rf $(REPO_ROOT)/desktop/portable/runtimes \
$(REPO_ROOT)/desktop/portable/wheels \
$(REPO_ROOT)/desktop/portable/.cache \
$(REPO_ROOT)/desktop/portable/release
rm -f $(REPO_ROOT)/desktop/portable/requirements-*.txt \
$(REPO_ROOT)/desktop/portable/overrides-*.txt
@echo "[green] removed generated files under $(REPO_ROOT)/desktop/portable"