easyci 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/easyci/command/unitydraw.rb +10 -1
- data/lib/easyci/version.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 113eafe943159d19560edb28ccc1d34194386b6a58072f9105128ed8015ad0cf
|
4
|
+
data.tar.gz: 161f61e90ffd504c193b04a13c5abc4654e7b8d1d2761257cf5789f93440915a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81dc6c108ba624d7d3ae75f2ac65b96a1ed00456b614cf8a78dbe796018c8452c80db6c7c8030feff960295a9848a4ed3451aacf5bc5e48373be293d7e62dff1
|
7
|
+
data.tar.gz: 1742a9e8803c8610a29b0c8696627380f1d13684c29c2281316c907eae6c29d5742af467c883d19df9dbff71daf4cd59071ba3a49e3fb8532485482551d35a9c
|
@@ -29,6 +29,8 @@ module EasyCI
|
|
29
29
|
gitee_draw_dir = File.expand_path('~/Documents/gitee_draw')
|
30
30
|
FileUtils.mkdir_p(gitee_draw_dir)
|
31
31
|
|
32
|
+
ssh_host_gitee_dreamstudio = ENV['SSH_HOST_GITEE_DREAMSTUDIO'] || 'gitee.com'
|
33
|
+
|
32
34
|
gitee_repo = ENV['GITEE_REPO'] || 'fundesignexport/MagicSortDemoDesignExport'
|
33
35
|
gitee_repo_name = gitee_repo.split('/').last
|
34
36
|
gitee_branch = ENV['GITEE_BRANCH'] || 'master'
|
@@ -65,7 +67,7 @@ module EasyCI
|
|
65
67
|
|
66
68
|
runner_dir = File.join(work_dir, runner_repo_name)
|
67
69
|
FileUtils.rm_rf(runner_dir) if File.exist?(runner_dir)
|
68
|
-
git_url = @use_https ? "https://gitee.com/#{@runner_repo}.git" : "git
|
70
|
+
git_url = @use_https ? "https://gitee.com/#{@runner_repo}.git" : "git@#{ssh_host_gitee_dreamstudio}:#{@runner_repo}.git"
|
69
71
|
puts "git_url: #{git_url}"
|
70
72
|
clone_runner_result = system("cd #{work_dir} && git clone --depth 1 -b #{runner_branch} #{git_url} #{runner_repo_name}")
|
71
73
|
unless clone_runner_result
|
@@ -99,6 +101,13 @@ module EasyCI
|
|
99
101
|
FileUtils.mkdir_p(resources_dir)
|
100
102
|
FileUtils.cp_r(File.join(gitee_repo_local_path, '2D', '.'), resources_dir)
|
101
103
|
FileUtils.cp_r(File.join(gitee_repo_local_path, 'Common/Font'), File.join(resources_dir, 'Fonts'))
|
104
|
+
# 安全复制 Languages 文件夹(如果存在)
|
105
|
+
languages_path = File.join(gitee_repo_local_path, 'Common/Languages')
|
106
|
+
if Dir.exist?(languages_path)
|
107
|
+
FileUtils.cp_r(languages_path, resources_dir)
|
108
|
+
else
|
109
|
+
puts "⚠️ 跳过复制:#{languages_path} 不存在"
|
110
|
+
end
|
102
111
|
else
|
103
112
|
FileUtils.mv(File.join(gitee_repo_local_path, 'Resources'), resources_dir)
|
104
113
|
end
|
data/lib/easyci/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wade
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-17 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: claide
|