Commit 3e124541 authored by NuriYuri's avatar NuriYuri
Browse files

Fix fix update for launcher

parent c99db8da
# The purpose of this file is to fix binary file in order to ensure PSDK will run properly
Dir['lib/*.update'].each { |filename| File.rename(filename, filename.sub('.update', '')) }
Dir['ruby_builtin_dlls/*.update'].each { |filename| File.rename(filename, filename.sub('.update', '')) }
renamer = proc do |filename|
new_filename = filename.sub('.update', '')
File.rename(filename, new_filename)
rescue Errno::EACCES
File.rename(new_filename, "#{new_filename}.old")
retry
end
Dir['lib/*.update'].each(&renamer)
Dir['ruby_builtin_dlls/*.update'].each(&renamer)
deleter = proc do |filename|
File.delete(filename)
rescue Errno::EACCES
puts "Failed to delete #{filename}"
end
Dir['lib/*.old'].each(&deleter)
Dir['ruby_builtin_dlls/*.old'].each(&deleter)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment