NativeScript / NativeScript/nativescript-cli

tns resources generate needs dummy png for Android

Đang mở
#5,092 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@KristianDD đang làm issue này rồi.

Từ ngày 21/10/2019.

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.0.2
  • Cross-platform modules:
  • Android Runtime: 6.0.0
  • iOS Runtime: 6.0.1
  • Plugin(s):

Describe the bug

When running tns resources generate <icons | splashes> I seem to need a stub/dummy version of the resource already in the AppResources folder. But this is only true for my Android build. That is, I need to not only have all the *drawable_dpi folders but they all have ta have a file called icon.png if runing icons and one called logo.png if running splashes. If the file is there it will overwrite it with the new value, if the file is not there it does nothing. Shouldn't it create the file? I have a script that copies over a template App_Resources file and then runs these commands. It would be nice to not have to include dummy versions of all these files in my template directory.

To Reproduce
Run tns resources generate icons <icon.png> on an empty App_Resources/Android directory.

Expected behavior

Auto-creation of directories and files.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.