Skip to content

Commit

Permalink
adjusted Rakefile for new UnityWebviewPostprocessBuild.cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Aug 23, 2018
1 parent 9ab40c5 commit d58e293
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions build/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ DSTDIR[0]="Packager/Assets/Plugins"
SRCS[0]=%W|
WebViewObject.cs
iOS/WebView.mm
iOS/Editor/UnityWebViewPostprocessBuild.cs
Android/Editor/UnityWebViewPostprocessBuild.cs
Android/Editor/UnityWebViewPostprocessBuild2018_1.cs
Editor/UnityWebViewPostprocessBuild.cs
|

# NOTE: WebPlayerTemplates is not inclued for now because the sample app becomes complicated.
Expand Down Expand Up @@ -70,12 +68,6 @@ task :build do
sh "./install.sh"
end
end
# the following is for Unity 2018 which seems not to process Editor/*.cs under Plugins/{Android,iOS}.
FileUtils.mkdir_p("#{DSTDIR[0]}/Editor")
FileUtils.mkdir_p("#{DSTDIR[0]}/Editor")
sh "cat #{DSTDIR[0]}/Android/Editor/*.cs #{DSTDIR[0]}/iOS/Editor/*.cs > #{DSTDIR[0]}/Editor/UnityWebViewPostprocessBuild.cs"
FileUtils.rm_rf("#{DSTDIR[0]}/Android/Editor")
FileUtils.rm_rf("#{DSTDIR[0]}/iOS/Editor")
end

desc "pack"
Expand Down

0 comments on commit d58e293

Please sign in to comment.