Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Enhance the release archive verification tool to allow it to verify the setup archives built with Inno Setup. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5abb5516f99da0bd0d3e05285134f0c0 |
User & Date: | mistachkin 2012-09-17 07:54:07.175 |
Context
2012-09-17
| ||
08:17 | Several automation changes related to Visual Studio 2005. check-in: a4a2ddbc05 user: mistachkin tags: trunk | |
07:54 | Enhance the release archive verification tool to allow it to verify the setup archives built with Inno Setup. check-in: 5abb5516f9 user: mistachkin tags: trunk | |
05:21 | Make it easier to read the master release archive manifest. check-in: dfc8420b01 user: mistachkin tags: trunk | |
Changes
Changes to Setup/verify.eagle.
︙ | ︙ | |||
29 30 31 32 33 34 35 36 37 38 39 40 41 42 | if {[string length $directory] > 0} then { set exitCode 0 set script [info script] set path [file dirname $script] set rootName [file rootname [file tail $script]] if {![info exists rar]} then { if {[info exists env(UnRARTool)]} then { set rar $env(UnRARTool) } if {![info exists rar] || ![file exists $rar]} then { | > > > > > > > > > > | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | if {[string length $directory] > 0} then { set exitCode 0 set script [info script] set path [file dirname $script] set rootName [file rootname [file tail $script]] if {![info exists innounp]} then { if {[info exists env(InnoUnpackTool)]} then { set innounp $env(InnoUnpackTool) } if {![info exists innounp] || ![file exists $innounp]} then { set innounp [file join $path innounp.exe] } } if {![info exists rar]} then { if {[info exists env(UnRARTool)]} then { set rar $env(UnRARTool) } if {![info exists rar] || ![file exists $rar]} then { |
︙ | ︙ | |||
66 67 68 69 70 71 72 | eval lappend archiveFileNames [findFilesRecursive \ [file join $directory [appendArgs *. $extension]]] } foreach archiveFileName $archiveFileNames { set manifest [file tail $archiveFileName] | < < < < < < < < | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | eval lappend archiveFileNames [findFilesRecursive \ [file join $directory [appendArgs *. $extension]]] } foreach archiveFileName $archiveFileNames { set manifest [file tail $archiveFileName] # # NOTE: Attempt to extract the version and/or date/time # information from the manifest file name. # regexp -- {(\d+)\.(\d+)\.(\d+)\.(\d+)} $manifest dummy \ major minor build revision |
︙ | ︙ | |||
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | if {[file extension $archiveFileName] eq ".zip"} then { if {![file exists $zip]} then { usage [appendArgs "tool \"" $zip "\" is missing"] } lappend listCommand $zip -Z -1 $archiveFileName } else { if {![file exists $rar]} then { usage [appendArgs "tool \"" $rar "\" is missing"] } lappend listCommand $rar vb -- $archiveFileName } if {[catch {eval $listCommand} result] == 0} then { | > > > > > > > > > > > > > > > > > > > > > > > > | | > | 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 | if {[file extension $archiveFileName] eq ".zip"} then { if {![file exists $zip]} then { usage [appendArgs "tool \"" $zip "\" is missing"] } lappend listCommand $zip -Z -1 $archiveFileName } elseif {[file extension $archiveFileName] eq ".exe" && \ [string match -nocase *Setup*.exe $manifest]} then { # # HACK: Assume this is an Inno Setup package and process # it using the necessary external tool. # lappend listCommand $innounp -v $archiveFileName } else { if {![file exists $rar]} then { usage [appendArgs "tool \"" $rar "\" is missing"] } lappend listCommand $rar vb -- $archiveFileName } if {[catch {eval $listCommand} result] == 0} then { # # HACK: The Inno Setup unpacking tool requires some extra # parsing logic to handle the output. # if {[string first [file tail $innounp] $listCommand] != -1} then { set containedFileNames [list] foreach {dummy matchFileName} [regexp -line -all -inline -- \ {^[ 0-9]{10} \d{4}\.\d{2}\.\d{2} \d{2}:\d{2} (.*)$} $result] { # # NOTE: Add the file name extracted from the output # line to the list of file names contained in # this archive. # lappend containedFileNames $matchFileName } } else { set containedFileNames [split [string map [list \\ /] \ [string trim $result]] \n] } foreach manifestFileName $manifestFileNames { # # TODO: Should we use -nocase here because Windows # is the primary release platform? # if {[lsearch -exact -- $containedFileNames \ |
︙ | ︙ |
Changes to Setup/verify.lst.
︙ | ︙ | |||
442 443 444 445 446 447 448 | tools/install/Properties/AssemblyInfo.cs tools/install/Resources/ tools/install/Resources/manifest.xml } ############################################################################### # | | | | | | | | | | | | | > | | | > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | tools/install/Properties/AssemblyInfo.cs tools/install/Resources/ tools/install/Resources/manifest.xml } ############################################################################### # # NOTE: This is the list of core files that should be present in all binary # archives that support the desktop versions of the .NET Framework. # set sds_manifests(binaryCore) { System.Data.SQLite.dll System.Data.SQLite.pdb System.Data.SQLite.xml } ############################################################################### # # NOTE: This is the list of extra files that should be present in all binary # archives that support LINQ (i.e. available with the desktop .NET # Framework 3.5 and later). # set sds_manifests(binaryLinq) { System.Data.SQLite.Linq.dll System.Data.SQLite.Linq.pdb System.Data.SQLite.Linq.xml northwindEF.db testlinq.exe testlinq.exe.config testlinq.pdb } ############################################################################### # # NOTE: This is the list of extra files that should be present in all binary # archives that support the desktop versions of the .NET Framework. # set sds_manifests(binaryExtra) { Installer.exe Installer.pdb SQLite.Designer.dll SQLite.Designer.pdb SQLite.Designer.xml test.exe test.exe.config test.pdb } ############################################################################### # # NOTE: This is the list of core interop files that should be present in the # standard binary archives (i.e. those not containing the mixed-mode # assembly). # set sds_manifests(binaryInterop) { SQLite.Interop.dll SQLite.Interop.pdb } ############################################################################### # # NOTE: This is the list of interop and other files that should be present in # the standard "PocketPC" binary archives (i.e. for the .NET Compact # Framework). # set sds_manifests(binaryCompact) { "SQLite.Interop.[format %03d $build].dll" "SQLite.Interop.[format %03d $build].pdb" test.cfg testce.exe testce.pdb } ############################################################################### # # NOTE: This is the list of core files that should be present in all setup # archives supporting the desktop versions of the .NET Framework. # set sds_manifests(setupCore) { {{app}\readme.htm} {{app}\bin\System.Data.SQLite.pdb} {{app}\doc\SQLite.NET.chm} {{app}\bin\SQLite.Designer.dll} {{app}\bin\SQLite.Designer.pdb} {{app}\bin\Installer.exe} {{app}\bin\Installer.pdb} {{app}\bin\test.exe} {{app}\bin\test.pdb} {{app}\bin\test.exe.config} install_script.iss } ############################################################################### # # NOTE: This is the list of core files that should be present in all setup # archives that support LINQ (i.e. available with the desktop .NET # Framework 3.5 and later). # set sds_manifests(setupLinqCore) { {{app}\bin\System.Data.SQLite.Linq.pdb} {{app}\bin\testlinq.exe} {{app}\bin\testlinq.pdb} {{app}\bin\testlinq.exe.config} {{app}\bin\northwindEF.db} } ############################################################################### # # NOTE: This is the list of core interop files that should be present in the # standard setup archives (i.e. those not containing the mixed-mode # assembly) that support the desktop versions of the .NET Framework. # set sds_manifests(setupInterop) { {{app}\bin\System.Data.SQLite.dll} {{app}\bin\SQLite.Interop.dll} {{app}\bin\SQLite.Interop.pdb} } ############################################################################### # # NOTE: This is the list of core files that should be present in the bundled # setup archives (i.e. those containing the mixed-mode assembly) that # support the desktop versions of the .NET Framework. # set sds_manifests(setupBundle) { {{app}\GAC\System.Data.SQLite.dll} } ############################################################################### # # NOTE: This is the list of core interop files that should be present in the # standard setup archives (i.e. those not containing the mixed-mode # assembly) that support LINQ (i.e. available with the desktop .NET # Framework 3.5 and later). # set sds_manifests(setupLinqInterop) { {{app}\bin\System.Data.SQLite.Linq.dll} } ############################################################################### # # NOTE: This is the list of core files that should be present in the bundled # setup archives (i.e. those containing the mixed-mode assembly) that # support LINQ (i.e. available with the desktop .NET Framework 3.5 and # later). # set sds_manifests(setupLinqBundle) { {{app}\GAC\System.Data.SQLite.Linq.dll} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 2.0 for x86. # set sds_manifests(setupX86Vs2005) { {{tmp}\vcredist_x86_2005_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 2.0 for x64. # set sds_manifests(setupX64Vs2005) { {{tmp}\vcredist_x64_2005_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 3.5 for x86. # set sds_manifests(setupX86Vs2008) { {{tmp}\vcredist_x86_2008_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 3.5 for x64. # set sds_manifests(setupX64Vs2008) { {{tmp}\vcredist_x64_2008_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 4.0 for x86. # set sds_manifests(setupX86Vs2010) { {{tmp}\vcredist_x86_2010_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 4.0 for x64. # set sds_manifests(setupX64Vs2010) { {{tmp}\vcredist_x64_2010_SP1.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 4.5 for x86. # set sds_manifests(setupX86Vs2012) { {{tmp}\vcredist_x86_2012_RTM.exe} } ############################################################################### # # NOTE: This is the list of files that should be present in all setup archives # supporting the .NET Framework 4.5 for x64. # set sds_manifests(setupX64Vs2012) { {{tmp}\vcredist_x64_2012_RTM.exe} } ############################################################################### # # NOTE: These are the master archive manifest groups, based on file name. The # first element in each list is the array variable name prefix used to # locate another array containing the named elements referenced by the # remaining elements in each list. Here is an example: |
︙ | ︙ | |||
534 535 536 537 538 539 540 | # # $result == $eagle_manifests(core) UNION $eagle_manifests(library) # ############################################################################### ################################# Source Code ################################# ############################################################################### | | > | | | > | | | > > > > > > > > > > > | | | | | > | > > > > | > | > > > > | | | | | | | > | > > > > > > > > > | | | | | > | > > > > | > | > > > > | > > | | | | | | | > | > > > > > > > > > | | | | | > | > > > > | > | > > > > | | | | | | | > | > > > > > > > > > | | | | | > | > > > > | > | > > > > | 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 | # # $result == $eagle_manifests(core) UNION $eagle_manifests(library) # ############################################################################### ################################# Source Code ################################# ############################################################################### set manifests(sqlite-netFx-source-.zip) [list sds \ source] ############################################################################### ################### Visual Studio 2005 / .NET Framework 2.0 ################### ############################################################################### set manifests(sqlite-netFx20-binary-Win32-2005-.zip) [list sds \ binaryCore binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx20-binary-x64-2005-.zip) [list sds \ binaryCore binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx20-binary-bundle-Win32-2005-.zip) [list sds \ binaryCore binaryExtra] ############################################################################### set manifests(sqlite-netFx20-binary-bundle-x64-2005-.zip) [list sds \ binaryCore binaryExtra] ############################################################################### set manifests(sqlite-netFx20-static-binary-Win32-2005-.zip) [list sds \ binaryCore binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx20-static-binary-x64-2005-.zip) [list sds \ binaryCore binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx20-static-binary-bundle-Win32-2005-.zip) [list sds \ binaryCore binaryExtra] ############################################################################### set manifests(sqlite-netFx20-static-binary-bundle-x64-2005-.zip) [list sds \ binaryCore binaryExtra] ############################################################################### set manifests(sqlite-netFx20-setup-x86-2005-.exe) [list sds \ setupCore setupInterop setupX86Vs2005] ############################################################################### set manifests(sqlite-netFx20-setup-x64-2005-.exe) [list sds \ setupCore setupInterop setupX64Vs2005] ############################################################################### set manifests(sqlite-netFx20-setup-bundle-x86-2005-.exe) [list sds \ setupCore setupBundle setupX86Vs2005] ############################################################################### set manifests(sqlite-netFx20-setup-bundle-x64-2005-.exe) [list sds \ setupCore setupBundle setupX64Vs2005] ############################################################################### ################### Visual Studio 2008 / .NET Framework 3.5 ################### ############################################################################### set manifests(sqlite-netFx35-binary-Win32-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx35-binary-x64-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx35-binary-bundle-Win32-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx35-binary-bundle-x64-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx35-static-binary-Win32-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx35-static-binary-x64-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx35-static-binary-bundle-Win32-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx35-static-binary-bundle-x64-2008-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx35-setup-x86-2008-.exe) [list sds \ setupCore setupLinqCore setupInterop setupLinqInterop setupX86Vs2008] ############################################################################### set manifests(sqlite-netFx35-setup-x64-2008-.exe) [list sds \ setupCore setupLinqCore setupInterop setupLinqInterop setupX64Vs2008] ############################################################################### set manifests(sqlite-netFx35-setup-bundle-x86-2008-.exe) [list sds \ setupCore setupLinqCore setupBundle setupLinqBundle setupX86Vs2008] ############################################################################### set manifests(sqlite-netFx35-setup-bundle-x64-2008-.exe) [list sds \ setupCore setupLinqCore setupBundle setupLinqBundle setupX64Vs2008] ############################################################################### ################# Visual Studio 2008 / .NET Compact Framework ################# ############################################################################### set manifests(sqlite-netFx35-binary-PocketPC-2008-.zip) [list sds \ binaryCore binaryCompact] set manifests(sqlite-netFx35-binary-PocketPC-2008-.zip,subst) ""; # dynamic ############################################################################### ################### Visual Studio 2010 / .NET Framework 4.0 ################### ############################################################################### set manifests(sqlite-netFx40-binary-Win32-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx40-binary-x64-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx40-binary-bundle-Win32-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx40-binary-bundle-x64-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx40-static-binary-Win32-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx40-static-binary-x64-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx40-static-binary-bundle-Win32-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx40-static-binary-bundle-x64-2010-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx40-setup-x86-2010-.exe) [list sds \ setupCore setupInterop setupLinqCore setupLinqInterop setupX86Vs2010] ############################################################################### set manifests(sqlite-netFx40-setup-x64-2010-.exe) [list sds \ setupCore setupInterop setupLinqCore setupLinqInterop setupX64Vs2010] ############################################################################### set manifests(sqlite-netFx40-setup-bundle-x86-2010-.exe) [list sds \ setupCore setupBundle setupLinqCore setupLinqBundle setupX86Vs2010] ############################################################################### set manifests(sqlite-netFx40-setup-bundle-x64-2010-.exe) [list sds \ setupCore setupBundle setupLinqCore setupLinqBundle setupX64Vs2010] ############################################################################### ################### Visual Studio 2012 / .NET Framework 4.5 ################### ############################################################################### set manifests(sqlite-netFx45-binary-Win32-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx45-binary-x64-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx45-binary-bundle-Win32-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx45-binary-bundle-x64-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx45-static-binary-Win32-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx45-static-binary-x64-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra binaryInterop] ############################################################################### set manifests(sqlite-netFx45-static-binary-bundle-Win32-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx45-static-binary-bundle-x64-2012-.zip) [list sds \ binaryCore binaryLinq binaryExtra] ############################################################################### set manifests(sqlite-netFx45-setup-x86-2012-.exe) [list sds \ setupCore setupInterop setupLinqCore setupLinqInterop setupX86Vs2012] ############################################################################### set manifests(sqlite-netFx45-setup-x64-2012-.exe) [list sds \ setupCore setupInterop setupLinqCore setupLinqInterop setupX64Vs2012] ############################################################################### set manifests(sqlite-netFx45-setup-bundle-x86-2012-.exe) [list sds \ setupCore setupBundle setupLinqCore setupLinqBundle setupX86Vs2012] ############################################################################### set manifests(sqlite-netFx45-setup-bundle-x64-2012-.exe) [list sds \ setupCore setupBundle setupLinqCore setupLinqBundle setupX64Vs2012] ############################################################################### # end of file |