]> khamidou — GitHub mirrors - electron.git/commitdiff
Only ship high DPI paks on Window.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 16 Jul 2014 07:49:40 +0000 (15:49 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 16 Jul 2014 07:49:40 +0000 (15:49 +0800)
atom.gyp
atom/app/atom_main_delegate.cc
script/create-dist.py

index 0ff53fc01a23d0597ddd6d86884b78c29e11d293..6b0a7fa499294ae104110c54dda34fe7b88074c0 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
                 '<(libchromiumcontent_library_dir)/libffmpegsumo.so',
                 '<(libchromiumcontent_resources_dir)/icudtl.dat',
                 '<(libchromiumcontent_resources_dir)/content_shell.pak',
-                '<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
-                '<(libchromiumcontent_resources_dir)/webkit_resources_200_percent.pak',
               ],
             },
             {
           'mac_bundle_resources': [
             'atom/common/resources/mac/MainMenu.xib',
             '<(libchromiumcontent_resources_dir)/content_shell.pak',
-            '<(libchromiumcontent_resources_dir)/ui_resources_200_percent.pak',
-            '<(libchromiumcontent_resources_dir)/webkit_resources_200_percent.pak',
             '<(libchromiumcontent_resources_dir)/icudtl.dat',
           ],
           'xcode_settings': {
index 47dc9dad670778bc6d6c20111ef4521fde48935b..e77814b06c48894eb6bfae299b6c6fd58ef6a756 100644 (file)
@@ -24,12 +24,14 @@ AtomMainDelegate::~AtomMainDelegate() {
 
 void AtomMainDelegate::AddDataPackFromPath(
     ui::ResourceBundle* bundle, const base::FilePath& pak_dir) {
+#if defined(OS_WIN)
   bundle->AddDataPackFromPath(
       pak_dir.Append(FILE_PATH_LITERAL("ui_resources_200_percent.pak")),
       ui::SCALE_FACTOR_200P);
   bundle->AddDataPackFromPath(
       pak_dir.Append(FILE_PATH_LITERAL("webkit_resources_200_percent.pak")),
       ui::SCALE_FACTOR_200P);
+#endif
 }
 
 bool AtomMainDelegate::BasicStartupComplete(int* exit_code) {
index d321f0bfeac6bc5382303685f62c1f8f2e6475e4..0ebb2da0ee84ddb9eb3af2cb7e23268478d1123a 100755 (executable)
@@ -50,8 +50,6 @@ TARGET_BINARIES = {
     'content_shell.pak',
     'libchromiumcontent.so',
     'libffmpegsumo.so',
-    'ui_resources_200_percent.pak',
-    'webkit_resources_200_percent.pak',
   ],
 }
 TARGET_DIRECTORIES = {