Skip to content

Commit

Permalink
Separating UWP arm and x86 deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgy Shabalev committed May 31, 2017
1 parent d6b9b6b commit 25190bf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion platform/uwp/build/uwp.rake
Expand Up @@ -29,6 +29,24 @@ namespace "config" do
$current_platform = "uwp" unless $current_platform
end

task :release do
targetsdk = 'ARM'
targetsdk = $app_config["uwp"]["target"] if $app_config["uwp"] && $app_config["uwp"]["target"]
if targetsdk == 'ARM' || targetsdk == 'arm'
$sdk = 'ARM'
$build_config = 'Release'
puts "Building ARM application"
elsif targetsdk == 'X86' || targetsdk == 'x86'
$sdk = 'Win32'
$build_config = 'Release'
puts "Building x86 application"
else
puts "Wrong target sdk, choose 'x86' or 'ARM'"
exit 1
end

end

task :uwp_ARM_Release do
$sdk = 'ARM'
$build_config = 'Release'
Expand Down Expand Up @@ -464,7 +482,7 @@ namespace "device" do
namespace "uwp" do

desc "Build production for device"
task :production => ["config:uwp_ARM_Release", "build:uwp:package"] do
task :production => ["config:release", "build:uwp:package"] do
puts "Now you can install application and dependencies by using the Windows PowerShell command [Add-AppxPackage -Path \"Path to Appx file\"]."
end

Expand Down

0 comments on commit 25190bf

Please sign in to comment.