-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1254 from e-gris/RE-16160
(RE-16160) Revive sign/ips.rb
- Loading branch information
Showing
5 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
module Pkg::Sign | ||
require 'packaging/sign/deb' | ||
require 'packaging/sign/dmg' | ||
require 'packaging/sign/ips' | ||
require 'packaging/sign/msi' | ||
require 'packaging/sign/rpm' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Pkg::Sign::Ips | ||
module_function | ||
|
||
def sign(ips_dir = 'pkg') | ||
packages = Dir["#{ips_dir}/**/*.p5p"] | ||
return if packages.empty? | ||
|
||
Pkg::Util::Gpg.load_keychain if Pkg::Util::Tool.find_tool('keychain') | ||
packages.each do |p5p_package| | ||
Pkg::Util::Gpg.sign_file(p5p_package) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters