Skip to content

Commit 62b94ba

Browse files
authored
Renamed darwin to macos/ios. Added results for 1.2.171+178. (#10)
1 parent 8dc9e2a commit 62b94ba

8 files changed

+22
-15
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ If you wish to run this script locally you need to have the following things ins
3838

3939
* Python 3 (developed with 3.10.5)
4040
* Java 11.0.*
41-
* [matlibplot](http://matplotlib.org/)
41+
* [matlibplot](http://matplotlib.org/) (Install with `python3 -m pip install matplotlib`)
4242

4343
# Usage
4444
Run [check_size.py](check_size.py):
4545

46-
python check_size.py
46+
python3 check_size.py
4747

4848
It will generate these files:
4949
* [releases.json](releases.json)

bundle_report.csv

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION,arm64-darwin,arm64-android,armv7-android,x86_64-darwin,js-web,wasm-web,x86_64-linux,x86-win32,x86_64-win32
1+
VERSION,arm64-ios,arm64-android,armv7-android,x86_64-macos,js-web,wasm-web,x86_64-linux,x86-win32,x86_64-win32
22
1.2.38,0,0,0,0,0,0,0,0,0,0,0,0,0
33
1.2.39,0,0,0,0,0,0,0,0,0,0,0,0,0
44
1.2.40,0,0,0,0,0,0,0,0,0,0,0,0,0
@@ -132,13 +132,14 @@ VERSION,arm64-darwin,arm64-android,armv7-android,x86_64-darwin,js-web,wasm-web,x
132132
1.2.168,0,0,0,4903229,2136856,2136856,2280112,2279798,2640920
133133
1.2.169,0,0,0,4953181,2168338,2168338,2297914,2280313,2640715
134134
1.2.170,0,0,0,4867450,2487049,2487048,2267170,2394652,2779963
135-
1.2.171,0,0,0,0,22,22,22,22,22
135+
1.2.171,0,0,0,4867450,2487049,2487048,2267170,2394652,2779963
136136
1.2.172,0,0,0,4855284,2488697,2488697,2218831,2395577,2781188
137137
1.2.173,0,1672536,1615194,3976115,2495531,2495532,1841827,2198735,2562808
138138
1.2.174,0,1672529,1615185,4000635,2495531,2495530,1841763,2198784,2562755
139139
1.2.175,0,1713489,1660240,4099506,2545905,2545905,1884656,2239733,2610053
140140
1.2.176,0,1713496,1660241,4099498,2548117,2548117,1885522,2240821,2612642
141141
1.2.177,0,1717591,1660246,4099498,2548392,2548391,1885603,2241100,2612616
142+
1.2.178,0,1717591,1660246,4099498,2548392,2548391,1885603,2241100,2612616
142143
1.2.179,0,1717589,1664346,4099605,2201171,2201171,1890197,2244298,2616297
143144
1.2.180,0,1705295,1660243,3952173,2219824,2219824,1849027,2228458,2595066
144145
1.2.181,0,1709398,1664337,3952293,3477357,3477357,1853922,2233274,2600308

bundle_size.png

-27 KB
Loading

check_size.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
]
3939

4040
engines = [
41-
{"platform": "arm64-darwin", "filename": "dmengine_release"},
41+
{"platform": "arm64-ios", "filename": "dmengine_release"},
4242
{"platform": "arm64-android", "filename": "libdmengine_release.so"},
4343
{"platform": "armv7-android", "filename": "libdmengine_release.so"},
44-
{"platform": "x86_64-darwin", "filename": "dmengine_release"},
44+
{"platform": "x86_64-macos", "filename": "dmengine_release"},
4545
{"platform": "js-web", "filename": "dmengine_release.js"},
4646
{"platform": "wasm-web", "filename": "dmengine_release.wasm"},
4747
{"platform": "x86_64-linux", "filename": "dmengine_release"},
@@ -50,10 +50,10 @@
5050
]
5151

5252
bundles = [
53-
{"platform": "arm64-darwin", "filename": "notused"},
53+
{"platform": "arm64-ios", "filename": "notused"},
5454
{"platform": "arm64-android", "filename": "notused"},
5555
{"platform": "armv7-android", "filename": "notused"},
56-
{"platform": "x86_64-darwin", "filename": "notused"},
56+
{"platform": "x86_64-macos", "filename": "notused"},
5757
{"platform": "js-web", "filename": "notused"},
5858
{"platform": "wasm-web", "filename": "notused"},
5959
{"platform": "x86_64-linux", "filename": "notused"},
@@ -158,13 +158,13 @@ def get_bundle_size_from_bob(sha1, platform, _):
158158

159159
if platform in ("armv7-android", "arm64-android"):
160160
return os.path.getsize("bundle_output/unnamed/unnamed.apk")
161-
elif platform in ("arm64-darwin"):
161+
elif platform in ("arm64-ios","x86_64-ios","arm64-darwin"):
162162
return os.path.getsize("bundle_output/unnamed.ipa")
163-
elif platform in ("x86_64-darwin"):
163+
elif platform in ("x86_64-macos", "x86_64-darwin"):
164164
return get_folder_size("bundle_output/unnamed.app")
165165
elif platform in ("x86_64-win32", "x86-win32"):
166166
return get_zipped_size("bundle_output")
167-
elif platform in ("x86_64-linux"):
167+
elif platform in ("x86_64-linux",):
168168
return get_zipped_size("bundle_output")
169169
elif platform in ("wasm-web", "js-web"):
170170
return get_zipped_size("bundle_output")

engine_report.csv

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION,arm64-darwin,arm64-android,armv7-android,x86_64-darwin,js-web,wasm-web,x86_64-linux,x86-win32,x86_64-win32
1+
VERSION,arm64-ios,arm64-android,armv7-android,x86_64-macos,js-web,wasm-web,x86_64-linux,x86-win32,x86_64-win32
22
1.2.38,0,0,0,0,0,0,0,0,0
33
1.2.39,0,0,0,0,0,0,0,0,0
44
1.2.40,0,0,0,0,0,0,0,0,0
@@ -132,13 +132,14 @@ VERSION,arm64-darwin,arm64-android,armv7-android,x86_64-darwin,js-web,wasm-web,x
132132
1.2.168,2700184,3669920,3185144,4891188,4837918,2287888,5171848,5383168,6501376
133133
1.2.169,2733488,3699696,3226680,4940932,4936683,2340041,5222440,5398528,6533120
134134
1.2.170,2689520,3511296,3128384,4855172,7765741,2105327,5124024,5713920,6893568
135-
1.2.171,0,0,0,0,0,0,0,0,0
135+
1.2.171,2689520,3511296,3128384,4855172,7765741,2105327,5124024,5713920,6893568
136136
1.2.172,2620432,3511288,3128364,4842868,7776508,2106805,4895928,5717504,6895104
137137
1.2.173,2586136,3457880,3075028,3963408,7800581,2114245,3871648,5089280,6170624
138138
1.2.174,2586132,3466072,3075028,3987904,7800441,2114250,3871648,5089280,6170624
139139
1.2.175,2635492,3548216,3165252,4086760,7940338,2155920,3953824,5184512,6282240
140140
1.2.176,2635492,3548216,3169348,4086752,7950699,2158372,3957920,5186560,6288896
141141
1.2.177,2635492,3556408,3169348,4086752,7951095,2158464,3957920,5187072,6288896
142+
1.2.178,2635492,3556408,3169348,4086752,7951095,2158464,3957920,5187072,6288896
142143
1.2.179,2635532,3548216,3177540,4086840,4499044,2159059,3966112,5194240,6297600
143144
1.2.180,2553404,3492512,3130052,3939384,4523023,2184641,3839616,5094400,6171136
144145
1.2.181,2553460,3508896,3138244,3939504,20958953,3117419,3851904,5105664,6184448
@@ -159,4 +160,4 @@ VERSION,arm64-darwin,arm64-android,armv7-android,x86_64-darwin,js-web,wasm-web,x
159160
1.3.3,2619992,3475680,3121728,3923320,4540390,2186884,3830968,5349376,6546432
160161
1.3.4,2586800,3431496,3072544,3890304,4502203,2162204,3790840,5282304,6478336
161162
1.3.5,2587056,3505600,3146440,3990376,4513615,2167120,3889560,5302272,6630400
162-
1.3.6,0,3514312,3163040,0,4530569,2177882,3918752,5700096,7033856
163+
1.3.6,2587192,3514312,3163040,4023480,4530569,2177882,3918752,5700096,7033856

engine_size.png

-29.5 KB
Loading

legacy_engine_report.csv

+1
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ VERSION,arm64-darwin,armv7-android,armv7-darwin,darwin,js-web,wasm-web,linux,win
139139
1.2.175,2635492,0,2167180,0,7940338,2155920,0,5184512,4086760,3953824,1936409,2015817
140140
1.2.176,2635492,0,2183572,0,7950699,2158372,0,5186560,4086752,3957920,1938829,2017040
141141
1.2.177,2635492,0,2183572,0,7951095,2158464,0,5187072,4086752,3957920,1939007,2016975
142+
1.2.178,2635492,0,2183572,0,7951095,2158464,0,5187072,4086752,3957920,1939007,2016975
142143
1.2.179,2635532,0,2183688,0,4499044,2159059,0,5194240,4086840,3966112,1946796,2024053
143144
1.2.180,2553404,0,2084712,0,4523023,2184641,0,5094400,3939384,3839616,2026223,2092974
144145
1.2.181,2553460,0,2101088,0,20958953,3117419,0,5105664,3939504,3851904,2029827,2096437

releases.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,10 @@
560560
"version": "1.2.177",
561561
"sha1": "28a2c96432d6329caa4d845967ba76ffcc2fc773"
562562
},
563+
{
564+
"version": "1.2.178",
565+
"sha1": "d1948ec5629c0f7fe037d199b043391f2929fc58"
566+
},
563567
{
564568
"version": "1.2.179",
565569
"sha1": "af6a29c2a1e2545e2d033790089c606ac9f0bb7a"
@@ -645,4 +649,4 @@
645649
"sha1": "905234d8da2e642f1075c73aaa1bfb72e49199e3"
646650
}
647651
]
648-
}
652+
}

0 commit comments

Comments
 (0)