Last active
October 20, 2021 00:49
-
-
Save nooriro/7e06bbdc780ee12a4f8fab6239661b6d to your computer and use it in GitHub Desktop.
codename initial build_number bootloader_version baseband_version system_size vendor_size product_size system_ext_size build_incremental build_timestamp mcfg_version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
crosshatch P PD1A.180720.030 b1c1-0.1-4948814 g845-00023-180815-B-4956438 2952790016 805306368 314572800 0 4972053 1534988697 MCFG-g845-00023-180822-B-4971248 | |
crosshatch P PD1A.180720.031 b1c1-0.1-4948814 g845-00023-180815-B-4956438 2952790016 805306368 314572800 0 5007156 1536792267 MCFG-g845-00023-180822-B-4971248 | |
crosshatch P PQ1A.181105.017.A1 b1c1-0.1-5004167 g845-00023-180917-B-5014671 2952790016 805306368 314572800 0 5081125 1539988603 MCFG-g845-00023-181019-B-5080395 | |
crosshatch P PQ1A.181205.006 b1c1-0.1-5034669 g845-00023-180917-B-5014671 2952790016 805306368 314572800 0 5108886 1541194933 MCFG-g845-00023-181019-B-5080395 | |
crosshatch P PQ1A.181205.006.A1 b1c1-0.1-5034669 g845-00023-180917-B-5014671 2952790016 805306368 314572800 0 5148322 1543258668 MCFG-g845-00023-181019-B-5080395 | |
crosshatch P PQ1A.190105.004 b1c1-0.1-5034669 g845-00023-180917-B-5014671 2952790016 805306368 314572800 0 5148680 1543271023 MCFG-g845-00023-181019-B-5080395 | |
crosshatch P PQ2A.190205.001 b1c1-0.1-5155331 g845-00009-181130-B-5157073 2952790016 805306368 314572800 0 5163636 1543987991 MCFG-g845-00009-181130-B-5157073 | |
crosshatch P PQ2A.190305.002 b1c1-0.1-5191736 g845-00009-181130-B-5157073 2952790016 805306368 314572800 0 5240760 1547761277 MCFG-g845-00009-181130-B-5157073 | |
crosshatch Q QPP1.190205.018.B4 b1c1-0.2-5260815 g845-00017-190123-B-5251681 1674506240 448249856 1024962560 0 5347935 1551506566 MCFG-g845-00017-190123-B-5251681 | |
crosshatch P PQ2A.190405.003 b1c1-0.1-5191736 g845-00009-181130-B-5157073 2952790016 805306368 314572800 0 5310204 1550163219 MCFG-g845-00009-181130-B-5157073 | |
crosshatch Q QPP2.190228.021 b1c1-0.2-5260815 g845-00020-190222-B-5330671 909369344 453521408 1920569344 0 5411336 1553693024 MCFG-g845-00020-190222-B-5330671 | |
crosshatch Q QPP2.190228.023 b1c1-0.2-5260815 g845-00020-190222-B-5330671 912486400 453521408 1920561152 0 5433927 1554328737 MCFG-g845-00020-190222-B-5330671 | |
crosshatch P PQ3A.190505.002 b1c1-0.1-5343672 g845-00017-190312-B-5369743 2952790016 805306368 314572800 0 5450365 1554820032 MCFG-g845-00017-190215-B-5314219 | |
crosshatch Q QPP3.190404.015 b1c1-0.2-5400090 g845-00029-190422-B-5494638 869945344 449921024 1927053312 0 5505587 1556213630 MCFG-g845-00029-190402-B-5428516 | |
crosshatch P PQ3A.190605.003 b1c1-0.1-5343672 g845-00017-190312-B-5369743 2952790016 805306368 314572800 0 5524043 1556779045 MCFG-g845-00017-190215-B-5314219 | |
crosshatch P PQ3A.190605.004.A1 b1c1-0.1-5578427 g845-00017-190312-B-5369743 2952790016 805306368 314572800 0 5579337 1558133283 MCFG-g845-00017-190215-B-5314219 | |
crosshatch Q QPP4.190502.018 b1c1-0.2-5576456 g845-00038-190513-B-5560212 847552512 452440064 1977810944 0 5616371 1559176208 MCFG-g845-00038-190426-B-5509449 | |
crosshatch Q QPP4.190502.019 b1c1-0.2-5576456 g845-00038-190513-B-5560212 847552512 452440064 1977810944 0 5642755 1559936013 MCFG-g845-00038-190426-B-5509449 | |
crosshatch P PQ3A.190705.003 b1c1-0.1-5578427 g845-00017-190312-B-5369743 2952790016 805306368 314572800 0 5600800 1558678513 MCFG-g845-00017-190215-B-5314219 | |
crosshatch Q QPP5.190530.014 b1c1-0.2-5619693 g845-00048-190602-B-5627991 843718656 451981312 2011181056 0 5691763 1561605030 MCFG-g845-00048-190602-B-5627991 | |
crosshatch P PQ3A.190801.002 b1c1-0.1-5578427 g845-00017-190312-B-5369743 2952790016 805306368 314572800 0 5670241 1560888029 MCFG-g845-00017-190215-B-5314219 | |
crosshatch Q QPP6.190730.005 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843337728 452128768 2096517120 0 5773495 1564684380 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QP1A.190711.019 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843386880 452128768 2091401216 0 5790879 1565300666 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QP1A.190711.020 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843382784 452128768 2091560960 0 5800535 1565794403 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QP1A.190711.020.C3 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843386880 452128768 2091560960 0 5869620 1568241399 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QP1A.191005.007 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843386880 452124672 2091532288 0 5878874 1568668404 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QP1A.191105.003 b1c1-0.2-5672671 g845-00048-190722-B-5745561 843415552 452124672 2091642880 0 5899767 1569438018 MCFG-g845-00048-190619-B-5672700 | |
crosshatch Q QQ1A.191205.008 b1c1-0.2-5672671 g845-00086-191011-B-5933466 844521472 464343040 2090446848 0 5974827 1572386556 MCFG-g845-00086-191017-B-5946827 | |
crosshatch Q QQ1A.200105.002 b1c1-0.2-5946827 g845-00086-191011-B-5933466 844529664 464252928 2090500096 0 6031801 1574786163 MCFG-g845-00086-191017-B-5946827 | |
crosshatch Q QQ1A.200105.003 b1c1-0.2-5946827 g845-00086-191011-B-5933466 844529664 464252928 2090500096 0 6079943 1576611494 MCFG-g845-00086-191216-B-6076335 | |
crosshatch Q QQ1A.200205.002 b1c1-0.2-5946827 g845-00086-191011-B-5933466 845230080 464248832 2090450944 0 6084386 1576710577 MCFG-g845-00086-191216-B-6076335 | |
crosshatch R RPP1.200123.016 b1c1-0.3-6181853 g845-00096-200117-B-6143245 853757952 467288064 1934123008 174555136 6203814 1581565344 MCFG-g845-00096-200117-B-6143245 | |
crosshatch Q QQ2A.200305.002 b1c1-0.2-6085603 g845-00096-200114-B-6134206 847577088 465022976 2085740544 0 6138846 1579140747 MCFG-g845-00096-191225-B-6097004 | |
crosshatch R RPP1.200123.020 b1c1-0.3-6181853 g845-00096-200117-B-6143245 852680704 466923520 1931251712 174460928 6249540 1582949064 MCFG-g845-00096-200117-B-6143245 | |
crosshatch R RPP2.200227.009 b1c1-0.3-6181853 g845-00096-200122-B-6154943 820457472 461029376 1940250624 181174272 6291673 1584073290 MCFG-g845-00104-200212-B-6201156 | |
crosshatch R RPP2.200227.014 b1c1-0.3-6181853 g845-00096-200122-B-6154943 820457472 461029376 1940889600 181174272 6343719 1585410885 MCFG-g845-00104-200212-B-6201156 | |
crosshatch Q QQ2A.200405.005 b1c1-0.2-6085603 g845-00096-200114-B-6134206 847581184 465022976 2085732352 0 6254899 1583194569 MCFG-g845-00096-191225-B-6097004 | |
crosshatch R RPP3.200320.017 b1c1-0.3-6181853 g845-00107-200228-B-6248885 833884160 463802368 1914433536 184561664 6412707 1587429537 MCFG-g845-00107-200313-B-6291447 | |
crosshatch Q QQ2A.200501.001.A3 b1c1-0.2-6085603 g845-00096-200114-B-6134206 847601664 465022976 2085785600 0 6353761 1585718269 MCFG-g845-00096-191225-B-6097004 | |
crosshatch Q QQ2A.200501.001.B2 b1c1-0.2-6085603 g845-00096-200114-B-6134206 847593472 465022976 2085785600 0 6352890 1585701046 MCFG-g845-00096-191225-B-6097004 | |
crosshatch R RPP4.200409.015 b1c1-0.3-6269423 g845-00107-200401-B-6356256 820748288 450355200 1926508544 187793408 6455311 1588404937 MCFG-g845-00107-200401-B-6356256 | |
crosshatch Q QQ3A.200605.001 b1c1-0.2-6374987 g845-00107-200409-B-6382632 829915136 464814080 2050072576 0 6392402 1586828367 MCFG-g845-00107-200409-B-6382632 | |
crosshatch Q QQ3A.200605.002.A1 b1c1-0.2-6374987 g845-00107-200409-B-6382632 829915136 464814080 2050072576 0 6492478 1589408927 MCFG-g845-00107-200512-B-6487913 | |
crosshatch R RPB1.200504.018 b1c1-0.3-6414971 g845-00107-200501-B-6452781 815775744 450588672 1970790400 188776448 6520161 1590103285 MCFG-g845-00107-200501-B-6452781 | |
crosshatch R RPB1.200504.020 b1c1-0.3-6414971 g845-00107-200501-B-6452781 815783936 450592768 1971204096 188768256 6557529 1591235138 MCFG-g845-00107-200501-B-6452781 | |
crosshatch Q QQ3A.200705.002 b1c1-0.2-6374987 g845-00107-200409-B-6382632 829911040 464814080 2050072576 0 6506677 1589831960 MCFG-g845-00107-200512-B-6487913 | |
crosshatch R RPB2.200611.009 b1c1-0.3-6414971 g845-00107-200605-B-6563278 847450112 450076672 1959456768 193105920 6625208 1593029041 MCFG-g845-00107-200605-B-6563278 | |
crosshatch R RPB2.200611.012 b1c1-0.3-6414971 g845-00107-200605-B-6563278 847474688 450080768 1959452672 193101824 6677315 1594692574 MCFG-g845-00107-200605-B-6563278 | |
crosshatch Q QQ3A.200805.001 b1c1-0.2-6374987 g845-00107-200409-B-6382632 829919232 464822272 2049990656 0 6578210 1591834614 MCFG-g845-00107-200512-B-6487913 | |
crosshatch R RPB3.200720.005 b1c1-0.3-6623201 g845-00107-200702-B-6648703 824754176 430235648 1975087104 192811008 6705141 1595554859 MCFG-g845-00107-200702-B-6648703 | |
crosshatch R RP1A.200720.009 b1c1-0.3-6623201 g845-00107-200702-B-6648703 824758272 430231552 1967792128 192737280 6720564 1596064255 MCFG-g845-00107-200702-B-6648703 | |
crosshatch R RP1A.201005.004 b1c1-0.3-6623201 g845-00107-200702-B-6648703 825266176 430256128 1968525312 192802816 6782484 1598038576 MCFG-g845-00107-200702-B-6648703 | |
crosshatch R RP1A.201105.002 b1c1-0.3-6623201 g845-00107-200702-B-6648703 825274368 430247936 1968525312 192806912 6869500 1601327915 MCFG-g845-00107-200702-B-6648703 | |
crosshatch R RQ1A.201205.003 b1c1-0.3-6863019 g845-00146-201008-B-6891496 826941440 430555136 1975525376 192479232 6906706 1602728116 MCFG-g845-00146-201008-B-6891496 | |
crosshatch R RQ1A.201205.003.A1 b1c1-0.3-6863019 g845-00146-201127-B-6998748 826941440 430555136 1975525376 192479232 7002488 1606778848 MCFG-g845-00146-201008-B-6891496 | |
crosshatch R RQ1A.210105.003 b1c1-0.3-6863019 g845-00146-201008-B-6891496 826949632 430551040 1980944384 192462848 7005429 1606868037 MCFG-g845-00146-201008-B-6891496 | |
crosshatch R RQ1D.210105.003 b1c1-0.3-6863019 g845-00146-201127-B-6998748 826949632 430551040 1980944384 192462848 7005430 1606867919 MCFG-g845-00146-201008-B-6891496 | |
crosshatch R RQ1A.210205.004 b1c1-0.3-6863019 g845-00146-201008-B-6891496 826966016 430170112 1980944384 192454656 7038034 1608168923 MCFG-g845-00146-201008-B-6891496 | |
crosshatch R RQ1D.210205.004 b1c1-0.3-6863019 g845-00146-201127-B-6998748 826966016 430170112 1980944384 192454656 7038035 1608169174 MCFG-g845-00146-201008-B-6891496 | |
crosshatch S SPP1.210122.020.A3 b1c1-0.4-6982973 g845-00166-210105-B-7062333 852492288 462106624 2122371072 216821760 7145137 1613342723 MCFG-g845-00166-210108-B-7070012 | |
crosshatch R RQ2A.210305.006 b1c1-0.3-7065185 g845-00166-210105-B-7062333 828313600 430575616 2030649344 193757184 7119741 1612315068 MCFG-g845-00166-210108-B-7070012 | |
crosshatch S SPP1.210122.022 b1c1-0.4-6982973 g845-00166-210105-B-7062333 852500480 462106624 2122371072 216842240 7158812 1613793132 MCFG-g845-00166-210108-B-7070012 | |
crosshatch S SPP2.210219.008 b1c1-0.4-6982973 g845-00166-210105-B-7062333 860319744 462770176 2173595648 229617664 7195985 1615318184 MCFG-g845-00166-210108-B-7070012 | |
crosshatch S SPP2.210219.008.A1 b1c1-0.4-6982973 g845-00166-210105-B-7062333 860319744 462770176 2173825024 229617664 7233312 1616609375 MCFG-g845-00166-210108-B-7070012 | |
crosshatch R RQ2A.210405.005 b1c1-0.3-7065185 g845-00166-210105-B-7062333 828313600 430579712 2030649344 193773568 7181113 1614736025 MCFG-g845-00166-210108-B-7070012 | |
crosshatch R RQ2A.210405.006 b1c1-0.3-7065185 g845-00166-210105-B-7062333 828313600 430579712 2030649344 193773568 7214111 1615956309 MCFG-g845-00166-210315-B-7210130 | |
crosshatch S SPP2.210219.018 b1c1-0.4-6982973 g845-00166-210105-B-7062333 860385280 462774272 2172764160 229621760 7242751 1617043874 MCFG-g845-00166-210108-B-7070012 | |
crosshatch S SPP3.210325.010 b1c1-0.4-7225301 g845-00173-210315-B-7209799 874749952 466305024 2223480832 239591424 7282474 1618412367 MCFG-g845-00173-210315-B-7209799 | |
crosshatch R RQ2A.210505.002 b1c1-0.3-7065185 g845-00166-210105-B-7062333 828317696 430567424 2030649344 193806336 7246365 1617140470 MCFG-g845-00166-210315-B-7210130 | |
crosshatch S SPB1.210331.013 b1c1-0.4-7225301 g845-00173-210315-B-7209799 874078208 466411520 2232655872 242020352 7333779 1620089330 MCFG-g845-00173-210315-B-7209799 | |
crosshatch R RQ3A.210605.005 b1c1-0.3-7241706 g845-00173-210331-B-7249945 832978944 430587904 2068033536 194039808 7349499 1620601416 MCFG-g845-00173-210507-B-7345066 | |
crosshatch S SPB2.210513.007 b1c1-0.4-7266295 g845-00173-210331-B-7249945 883367936 466128896 2215026688 248303616 7398525 1621987301 MCFG-g845-00173-210416-B-7288023 | |
crosshatch S SPB2.210513.011 b1c1-0.4-7266295 g845-00173-210331-B-7249945 883367936 466128896 2215026688 248332288 7465093 1623879802 MCFG-g845-00173-210416-B-7288023 | |
crosshatch R RQ3A.210705.001 b1c1-0.3-7241706 g845-00173-210331-B-7249945 833003520 430583808 2068033536 194052096 7380771 1621470053 MCFG-g845-00173-210507-B-7345066 | |
crosshatch S SPB3.210618.013 b1c1-0.4-7315493 g845-00188-210602-B-7417145 844013568 466022400 2246066176 257957888 7533405 1625784276 MCFG-g845-00188-210602-B-7417145 | |
crosshatch S SPB3.210618.016 b1c1-0.4-7315493 g845-00188-210602-B-7417145 843976704 466022400 2246066176 257957888 7566885 1626815440 MCFG-g845-00188-210602-B-7417145 | |
crosshatch R RQ3A.210805.001.A1 b1c1-0.3-7241706 g845-00173-210331-B-7249945 833003520 430583808 2068033536 194056192 7474174 1624080131 MCFG-g845-00173-210507-B-7345066 | |
crosshatch S SPB4.210715.011 b1c1-0.4-7513016 g845-00194-210722-B-7573082 879550464 465780736 2281336832 258301952 7608474 1628031810 MCFG-g845-00194-210722-B-7573082 | |
crosshatch S SPB4.210715.014 b1c1-0.4-7513016 g845-00194-210722-B-7573082 881692672 465780736 2281336832 258310144 7654839 1629318313 MCFG-g845-00194-210722-B-7573082 | |
crosshatch R RQ3A.210905.001 b1c1-0.3-7241706 g845-00173-210331-B-7249945 833015808 430583808 2068033536 193339392 7511028 1625099020 MCFG-g845-00173-210507-B-7345066 | |
crosshatch S SPB5.210812.002 b1c1-0.4-7617406 g845-00194-210812-B-7635520 889778176 465842176 2271928320 256598016 7671067 1629844788 MCFG-g845-00194-210722-B-7573082 | |
crosshatch R RQ3A.211001.001 b1c1-0.3-7241706 g845-00173-210331-B-7249945 831668224 430583808 2068033536 193351680 7641976 1628904677 MCFG-g845-00173-210507-B-7345066 | |
crosshatch S SP1A.210812.015 b1c1-0.4-7617406 g845-00194-210812-B-7635520 889774080 465842176 2259091456 256528384 7679548 1630045488 MCFG-g845-00194-210722-B-7573082 | |
crosshatch S SP1A.210812.016.A1 b1c1-0.4-7617406 g845-00194-210812-B-7635520 889774080 465842176 2259091456 256528384 7796139 1633470433 MCFG-g845-00194-210722-B-7573082 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 7-Zip이 설치되어 있어야 함 | |
# https://www.7-zip.org/download.html | |
# Requires 'simg2img.exe' and 'cygwin1.dll' in current directory | |
# https://github.com/KinglyWayne/simg2img_win/archive/master.zip | |
# | |
# Usage 1: 디렉토리의 모든 파일에 대해서 작업하기 | |
# gci E:\ROM2 | sort LastWriteTime | % { ... } | |
# Usage 2: 특정 시간 이후의 파일에 대해서만 작업하기 | |
# gci E:\ROM2 | ? { $_.LastWriteTime -gt "2021-10-20 02:00" } | sort LastWriteTime | % { ... } | |
# | |
# gci E:\ROM2 | sort LastWriteTime | % { | |
gci C:\Users\nooriro\Downloads\*-factory-*.zip -include crosshatch-*, sunfish-* | ? { $_.LastWritetime -gt "2021-10-20 02:00" } | sort LastWriteTime | % { | |
# 현재 디렉토리에 임시 디렉토리를 만들고 이동 | |
$dir = [System.IO.Path]::GetRandomFileName() | |
$null = New-Item $dir -ItemType Directory | |
Set-Location $dir | |
# factory image zip filename format: "CODENAME-BUILDNUMBER-factory-HASH.zip" | |
# 코드명, 빌드 번호 | |
$i = $_.Name.IndexOf("-") # index of 1st '-' | |
$j = $_.Name.IndexOf("-", $i+1) # index of 2nd '-' | |
$cn = $_.Name.Substring(0, $i) # CODENAME | |
$bn = $_.Name.Substring($i+1, $j-$i-1) # BUILDNUMBER | |
$cnbn = $_.Name.Substring(0, $j) # CODENAME-BUILDNUMBER | |
$v = $bn.Substring(0,1) # first letter of CODENAME | |
# bootloader img filename format: "bootloader-CODENAME-BOOTLOADERVERSION.img" | |
# radio img filename format: "radio-CODENAME-BASEBANDVERSION.img" | |
# 부트로더 버전, 기저대역 버전 | |
&"C:\Program Files\7-Zip\7z.exe" x "$($_.FullName)" ${cnbn}\bootloader-${cn}-*.img ${cnbn}\radio-${cn}-*.img ${cnbn}\image-${cnbn}.zip > $null | |
$f = ( gci "${cnbn}\bootloader-${cn}-*.img" )[0] | |
$i = $f.Name.IndexOf("-") | |
$i = $f.Name.IndexOf("-", $i+1) # index of 2nd '-' | |
$j = $f.Name.LastIndexOf(".") # index of '.' just before extension | |
$bv = $f.Name.Substring($i+1, $j-$i-1) # BOOTLOADERVERSION | |
$f = ( gci "${cnbn}\radio-${cn}-*.img" )[0] | |
$i = $f.Name.IndexOf("-") | |
$i = $f.Name.IndexOf("-", $i+1) # index of 2nd '-' | |
$j = $f.Name.LastIndexOf(".") # index of '.' just before extension | |
$rv = $f.Name.Substring($i+1, $j-$i-1) # BASEBANDVERSION | |
# system/vendor/product/system_ext img 파일 추출 | |
# 및 sparse image를 raw image로 변환 | |
&"C:\Program Files\7-Zip\7z.exe" x ${cnbn}\image-${cnbn}.zip system.img vendor.img product.img system_ext.img > $null | |
..\simg2img system.img system.ext4.img | |
..\simg2img vendor.img vendor.ext4.img | |
..\simg2img product.img product.ext4.img | |
if ( Test-Path system_ext.img ) { | |
..\simg2img system_ext.img system_ext.ext4.img | |
} | |
$ss = (Get-Item system.ext4.img).Length | |
$vs = (Get-Item vendor.ext4.img).Length | |
$ps = (Get-Item product.ext4.img).Length | |
if ( Test-Path system_ext.ext4.img ) { | |
$ses = (Get-Item system_ext.ext4.img).Length | |
} else { | |
$ses = 0 | |
} | |
# system.ext4.img 파일에서 system/build.prop 추출 | |
# 빌드 인크리멘탈: ro.build.version.incremental | |
# 빌드 타임스탬프: ro.build.date.utc | |
&"C:\Program Files\7-Zip\7z.exe" x system.ext4.img system/build.prop > $null | |
$mi = Select-String -Path system\build.prop -Pattern "^ro.build.version.incremental=" | select -first 1 | |
$buildid = $mi.Line -Replace "^ro.build.version.incremental=","" | |
$mi = Select-String -Path system\build.prop -Pattern "^ro.build.date.utc=" | select -first 1 | |
$timestamp = $mi.Line -Replace "^ro.build.date.utc=","" | |
# vendor.ext4.img에서 mbn files 추출 | |
&"C:\Program Files\7-Zip\7z.exe" x vendor.ext4.img rfs/msm/mpss/readonly/vendor/mbn/* > $null | |
$mcfgver = Get-Content rfs\msm\mpss\readonly\vendor\mbn\mcfg.version | |
# 알아낸 정보를 화면에 출력 | |
"{0,-13} {1,-2} {2,-20} {3,-19} {4,-30} {5,10} {6,10} {7,10} {8,10} {9,11} {10,12} {11,35}" -f $cn, $v.toupper(), $bn.toupper(), $bv, ($rv -replace "b","B"), $ss, $vs, $ps, $ses, $buildid, $timestamp, $mcfgver | |
# radio 버전에서 년월일만 뽑아내기 | |
$i = $rv.IndexOf("-") | |
$i = $rv.IndexOf("-", $i+1) | |
$radio_short = $rv.Substring($i+1, 6) | |
# mcfg 버전에서 년월일만 뽑아내기 | |
$i = $mcfgver.IndexOf("-") | |
$i = $mcfgver.IndexOf("-", $i+1) | |
$i = $mcfgver.IndexOf("-", $i+1) | |
$mcfg_short = $mcfgver.Substring($i+1, 6) | |
$zip_name = "mbn-${cn}-$( $v.toupper() )-${buildid}-${radio_short}-${mcfg_short}-$( $bn.toupper() ).zip" | |
Set-Location rfs\msm\mpss\readonly\vendor\mbn | |
if ( -not ( Test-Path "..\..\..\..\..\..\..\${zip_name}" ) ) { | |
&"C:\Program Files\7-Zip\7z.exe" a -tzip "..\..\..\..\..\..\..\${zip_name}" * > $null | |
} | |
Set-Location ..\..\..\..\..\..\.. | |
Remove-Item $dir -Recurse -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment