Add unbuilt v2ray to updater-v2ray-v5.39.0 — v2ray → v5.39.0 (#12956)

* Add unbuilt v2ray to updater-v2ray-v5.39.0

* Update workflows to use M140 containers; Update build_updated_packages.rb to force hash updates during installs.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* updater-v2ray-v5.39.0: Package File Update Run on linux/386 container.

* Set PRs to draft if workflows are running on them.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Check if CI variable is set when starting container operations.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Gate crew reinstall usage of '-f' behind CREW_BUILD_NO_PACKAGE_FILE_HASH_UPDATES.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* updater-v2ray-v5.39.0: Package File Update Run on linux/arm/v7 container.

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
chromebrew-actions[bot]
2025-09-26 12:18:00 -05:00
committed by GitHub
parent febe8a5266
commit b4cf1dfdbc
9 changed files with 57 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/local/bin/ruby
# build_updated_packages version 3.3 (for Chromebrew)
# build_updated_packages version 3.4 (for Chromebrew)
# This updates the versions in python pip packages by calling
# tools/update_python_pip_packages.rb, checks for updated ruby packages
# by calling tools/update_ruby_gem_packages.rb, and then checks if any
@@ -82,7 +82,9 @@ def update_hashes(name = nil)
# Add build hashes.
system "crew update_package_file #{name}" unless remote_binary.values.all?(nil)
# Add manifests if we are in the right architecture.
FileUtils.cp "#{CREW_META_PATH}/#{name}.filelist", "#{CREW_LOCAL_REPO_ROOT}/manifest/#{ARCH}/#{name.chr}/#{name}.filelist" if system("yes | crew reinstall #{name}") && File.exist?("#{CREW_META_PATH}/#{name}.filelist")
# Using crew reinstall -f package here updates the hashes for
# binaries.
FileUtils.cp "#{CREW_META_PATH}/#{name}.filelist", "#{CREW_LOCAL_REPO_ROOT}/manifest/#{ARCH}/#{name.chr}/#{name}.filelist" if system("yes | crew reinstall #{'-f' unless CREW_BUILD_NO_PACKAGE_FILE_HASH_UPDATES} #{name}") && File.exist?("#{CREW_META_PATH}/#{name}.filelist")
end
end
@@ -137,9 +139,11 @@ updated_packages.each do |pkg|
puts "#{name.capitalize} #{@pkg_obj.version} has no binaries and may not need them.".lightgreen
next pkg
elsif @pkg_obj.no_compile_needed?
system "yes | crew reinstall #{name}"
# Using crew reinstall -f package here updates the hashes for
# binaries.
system "yes | crew reinstall #{'-f' unless CREW_BUILD_NO_PACKAGE_FILE_HASH_UPDATES} #{name}"
# Add manifests if we are in the right architecture.
FileUtils.cp "#{CREW_META_PATH}/#{name}.filelist", "#{CREW_LOCAL_REPO_ROOT}/manifest/#{ARCH}/#{name.chr}/#{name}.filelist" if system("yes | crew reinstall #{name}") && File.exist?("#{CREW_META_PATH}/#{name}.filelist")
FileUtils.cp "#{CREW_META_PATH}/#{name}.filelist", "#{CREW_LOCAL_REPO_ROOT}/manifest/#{ARCH}/#{name.chr}/#{name}.filelist" if system("yes | crew reinstall #{'-f' unless CREW_BUILD_NO_PACKAGE_FILE_HASH_UPDATES} #{name}") && File.exist?("#{CREW_META_PATH}/#{name}.filelist")
else
if @pkg_obj.no_binaries_needed?
updated_packages.delete(pkg)