Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create the resources dir if it doesn't exist #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions lib/motion/project/sparkle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ def create_release_folder

def generate_keys
return false unless config_ok?
unless File.exist?(sparkle_config_path)
FileUtils.mkdir_p sparkle_config_path
end
create_config_folder

[dsa_param_path, private_key_path, public_key_path].each do |file|
if File.exist? file
App.info "Sparkle", "Error: file exists.
Expand All @@ -117,6 +116,7 @@ def generate_keys
end

def generate_public_key
FileUtils.mkdir_p('resources') unless File.exist?('resources')
`#{openssl} dsa -in #{private_key_path} -pubout -out #{public_key_path}`
end

Expand Down