Compare commits

..

1 Commits

Author SHA1 Message Date
MickLesk 2a3671989d AFFiNE: fix version and build type reported by the app itself 2026-08-04 11:47:05 +02:00
3 changed files with 7 additions and 4 deletions
+2
View File
@@ -81,6 +81,8 @@ TURBO
export NODE_OPTIONS="--max-old-space-size=2048"
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
$STD npm install -g typescript
$STD yarn affine @affine/native build
+2
View File
@@ -78,6 +78,8 @@ $STD yarn config set enableTelemetry 0
export NODE_OPTIONS="--max-old-space-size=4096"
export TSC_COMPILE_ON_ERROR=true
$STD yarn install
$STD bash ./scripts/set-version.sh "$(cat ~/.affine_app)"
export BUILD_TYPE=stable
$STD npm install -g typescript
$STD yarn affine @affine/native build
$STD yarn affine @affine/server-native build
+3 -4
View File
@@ -2040,9 +2040,8 @@ cleanup_orphaned_sources() {
local basename_file
basename_file=$(basename "$sources_file")
# NEVER remove the distro's own base sources file (debian.sources,
# ubuntu.sources, ...)
if [[ "$basename_file" == "$(get_os_info id).sources" ]]; then
# NEVER remove debian.sources - this is the standard Debian repository
if [[ "$basename_file" == "debian.sources" ]]; then
continue
fi
@@ -2114,7 +2113,7 @@ ensure_apt_working() {
# Step 4: More aggressive - remove all third-party sources
msg_warn "APT update still failing, removing third-party sources"
find /etc/apt/sources.list.d/ -type f \( -name "*.sources" -o -name "*.list" \) \
! -name "$(get_os_info id).sources" -delete 2>/dev/null || true
! -name "debian.sources" -delete 2>/dev/null || true
# Final attempt
if ! $STD apt update; then