Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ go.mod
.Rhistory
program
.env
*.gz
96 changes: 96 additions & 0 deletions docs/content/release/25.0.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
---
title: 25.0.4
---

CodeForge v25.0.5 正式发布!本次更新带来了 JVM 生态和 Go 语言的完整支持,全面优化了环境管理、网络配置和用户体验。我们新增了 3 种重要编程语言,重构了版本管理系统,让 CodeForge 成为更强大、更易用的代码执行工具。

CodeForge v25.0.5 is officially released! This update brings complete support for the JVM ecosystem and Go language, with comprehensive optimizations to environment management, network configuration, and user experience. We've added 3 important programming languages and refactored the version management system, making CodeForge a more powerful and user-friendly code execution tool.

---

## 📦 版本信息 | Release Information

- **项目地址 | Repository**:https://github.com/devlive-community/codeforge
- **官方网站 | Official Website**:https://codeforge.devlive.org/
- **版本号 | Version**:v25.0.5
- **发布日期 | Release Date**:2025年12月28日 | December 28, 2025

---

## ✨ 新增功能 | New Features

### 新增语言支持 | New Language Support

- **🐹 Go** - Google 开发的现代系统编程语言,支持一键环境安装
- **🔷 Scala** - JVM 平台函数式编程语言,支持版本同步管理
- **🎯 Clojure** - JVM 平台 Lisp 方言,现代函数式编程,支持版本同步

现在 CodeForge 支持 **32+** 种编程语言。

Now CodeForge supports **32+** programming languages.

### 环境管理增强 | Enhanced Environment Management

- **版本卸载功能** - 支持已安装版本的便捷卸载,管理更灵活
- **版本切换脚本** - 快速切换不同语言版本,提升开发效率
- **手动环境检测** - 手动触发环境检测,确保配置准确性
- **动态配置刷新** - 配置修改即时生效,无需重启应用
- **目录结构优化** - 统一日志文件、插件安装和缓冲目录

**Version Uninstallation** - Convenient uninstallation of installed versions for flexible management
**Version Switching Scripts** - Quickly switch between different language versions for improved efficiency
**Manual Environment Detection** - Manually trigger environment detection to ensure configuration accuracy
**Dynamic Configuration Refresh** - Configuration changes take effect immediately without restart
**Directory Structure Optimization** - Unified log file, plugin installation, and buffer directories

### 网络与性能优化 | Network & Performance Optimization

- **网络配置页面** - 全新网络设置界面,支持自定义参数配置
- **网络回滚机制** - 配置出错可快速回滚,保障系统稳定性
- **统一 CDN 加速** - 全面启用 CDN,大幅提升下载速度
- **缓冲管理优化** - 增强缓冲区管理,提升整体性能表现

**Network Configuration Page** - Brand new network settings interface with customizable parameters
**Network Rollback Mechanism** - Quick rollback for configuration errors to ensure system stability
**Unified CDN Acceleration** - Full CDN acceleration for significantly faster downloads
**Buffer Management Optimization** - Enhanced buffer management for improved overall performance

### 用户体验提升 | User Experience Improvements

- **窗口拖拽调整** - 支持自由拖拽调整窗口大小
- **滚动条美化** - 重新设计滚动条样式,界面更精致
- **版本列表优化** - 美化已安装版本和可用版本展示
- **插件管理** - 支持插件启用/禁用切换,灵活控制功能
- **显示优化** - 修复内容显示不全问题,完善视觉体验

**Resizable Windows** - Support for drag-to-resize windows
**Beautified Scrollbars** - Redesigned scrollbar styles for a more refined interface
**Optimized Version Lists** - Enhanced display for installed and available versions
**Plugin Management** - Support for enabling/disabling plugins for flexible control
**Display Optimization** - Fixed incomplete content display for better visual experience

---

## 🐛 问题修复 | Bug Fixes

- **修复代码格式化问题** - 解决代码格式化相关异常
- **修复插件输出异常** - 解决 Scala 和 Clojure 插件无效输出
- **修复显示问题** - 修复窗口内容显示不全的问题
- **修复自动保存问题** - 修复打开语言配置时的自动保存异常
- **修复界面宽度问题** - 修复语言列表宽度显示异常
- **代码质量优化** - 解决代码警告,提升代码质量

**Fixed Code Formatting Issues** - Resolved code formatting related anomalies
**Fixed Plugin Output Issues** - Resolved invalid output from Scala and Clojure plugins
**Fixed Display Issues** - Fixed incomplete window content display
**Fixed Auto-save Issues** - Fixed auto-save anomaly when opening language configuration
**Fixed Interface Width Issues** - Fixed language list width display anomaly
**Code Quality Optimization** - Resolved code warnings and improved code quality

---

## 📥 立即下载 | Download Now

在 [GitHub Releases](https://github.com/devlive-community/codeforge/releases) 下载最新版本,或访问[官方网站](https://codeforge.devlive.org/)了解更多信息。

Download the latest version from [GitHub Releases](https://github.com/devlive-community/codeforge/releases), or visit the [Official Website](https://codeforge.devlive.org/) for more information.
1 change: 1 addition & 0 deletions docs/pageforge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ footer:

nav:
- 发布日志:
- /release/25.0.5.md
- /release/25.0.4.md
- /release/25.0.3.md
- /release/25.0.2.md
Expand Down
6 changes: 6 additions & 0 deletions scripts/sync-clojure-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function getConfig() {
ossAccessKeySecret: process.env.OSS_ACCESS_KEY_SECRET,
ossBucket: process.env.OSS_BUCKET,
cdnDomain: process.env.CDN_DOMAIN, // 自定义 CDN 域名(可选)
githubToken: process.env.GITHUB_TOKEN, // GitHub Personal Access Token(可选,用于提高 API 速率限制)
githubRepo: 'clojure/brew-install',
ossPrefix: 'global/plugins/clojure/',
tempDir: path.join(__dirname, '.temp-clojure'),
Expand Down Expand Up @@ -130,6 +131,11 @@ function httpGet(url, isJson = true) {
}
};

// 如果是 GitHub API 请求且配置了 Token,添加认证头
if (url.includes('api.github.com') && CONFIG.githubToken) {
options.headers['Authorization'] = `token ${CONFIG.githubToken}`;
}

client.get(url, options, (res) => {
if (res.statusCode === 302 || res.statusCode === 301) {
// 处理重定向
Expand Down
Loading
Loading