System.Data.SQLite
Check-in [eadbd86b54]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add support for Mono to the release process.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eadbd86b54a137c4f20218ae1e53d65120451251
User & Date: mistachkin 2016-04-18 20:07:07
Context
2016-04-19
03:57
More refinements to the release process. check-in: 4447271075 user: mistachkin tags: trunk
2016-04-18
20:07
Add support for Mono to the release process. check-in: eadbd86b54 user: mistachkin tags: trunk
19:24
Update SQLite core library to the 3.12.2 release. check-in: 69ebb693c8 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Setup/build_mono.bat.

    30     30   
    31     31   %_VECHO% Tools = '%TOOLS%'
    32     32   
    33     33   SET BUILD_CONFIGURATIONS=DebugManagedOnly ReleaseManagedOnly
    34     34   SET PLATFORMS="Any CPU"
    35     35   SET YEARS=2013
    36     36   SET NOUSER=1
    37         -SET MSBUILD_ARGS=/property:InteropCodec=false
           37  +SET MSBUILD_ARGS=/property:ConfigurationSuffix=MonoOnPosix
           38  +SET MSBUILD_ARGS=%MSBUILD_ARGS% /property:InteropCodec=false
    38     39   SET MSBUILD_ARGS=%MSBUILD_ARGS% /property:InteropLog=false
    39     40   SET MSBUILD_ARGS_DEBUG=/property:CheckState=true
    40     41   SET MSBUILD_ARGS_DEBUG=%MSBUILD_ARGS_DEBUG% /property:CountHandle=true
    41     42   SET MSBUILD_ARGS_DEBUG=%MSBUILD_ARGS_DEBUG% /property:TraceConnection=true
    42     43   SET MSBUILD_ARGS_DEBUG=%MSBUILD_ARGS_DEBUG% /property:TraceDetection=true
    43     44   SET MSBUILD_ARGS_DEBUG=%MSBUILD_ARGS_DEBUG% /property:TraceHandle=true
    44     45   SET MSBUILD_ARGS_DEBUG=%MSBUILD_ARGS_DEBUG% /property:TraceStatement=true

Changes to Setup/data/verify.lst.

   273    273     Setup/data/SQLite.iss
   274    274     Setup/data/verify.lst
   275    275     Setup/deployAndTestCe200x.eagle
   276    276     Setup/release.bat
   277    277     Setup/release_all.bat
   278    278     Setup/release_ce_200x.bat
   279    279     Setup/release_ce_2013.bat
          280  +  Setup/release_mono.bat
   280    281     Setup/release_static.bat
   281    282     Setup/run-mono-tests-debug.sh
   282    283     Setup/run-mono-tests-release.sh
   283    284     Setup/set_2005.bat
   284    285     Setup/set_2008.bat
   285    286     Setup/set_2010.bat
   286    287     Setup/set_2012.bat

Changes to Setup/release.bat.

   188    188   ) ELSE (
   189    189     FOR /F "delims=" %%F IN ('DIR /B /S /AD "bin\%YEAR%\%BASE_CONFIGURATION%\bin" 2^> NUL') DO (
   190    190       %__ECHO% RMDIR /S /Q "%%F"
   191    191     )
   192    192     %__ECHO% zip.exe -v -j -r "Setup\Output\%PREFIX%-%FRAMEWORK%-%TYPE%-%BASE_PLATFORM%%EXTRA_PLATFORM%-%YEAR%-%VERSION%.zip" "bin\%YEAR%\%BASE_CONFIGURATION%\bin" -x "%EXCLUDE_BIN%"
   193    193   )
   194    194   
          195  +IF DEFINED RELEASE_MANAGEDONLY GOTO skip_releaseInterop
          196  +
   195    197   IF /I "%CONFIGURATION%" == "%BASE_CONFIGURATION%" (
   196    198     IF NOT DEFINED BASE_CONFIGURATIONSUFFIX (
   197    199       %__ECHO% zip.exe -v -d "Setup\Output\%PREFIX%-%FRAMEWORK%-%TYPE%-%BASE_PLATFORM%%EXTRA_PLATFORM%-%YEAR%-%VERSION%.zip" SQLite.Interop.*
   198    200     )
   199    201   )
   200    202   
   201    203   %__ECHO% zip.exe -v -j -r "Setup\Output\%PREFIX%-%FRAMEWORK%-%TYPE%-%BASE_PLATFORM%%EXTRA_PLATFORM%-%YEAR%-%VERSION%.zip" "bin\%YEAR%\%PLATFORM%\%CONFIGURATION%%CONFIGURATIONSUFFIX%" -x "%EXCLUDE_BIN%"
          204  +
          205  +:skip_releaseInterop
   202    206   
   203    207   IF ERRORLEVEL 1 (
   204    208     ECHO Failed to archive binary files.
   205    209     GOTO errors
   206    210   )
   207    211   
   208    212   %__ECHO2% POPD

Added Setup/release_mono.bat.

            1  +@ECHO OFF
            2  +
            3  +::
            4  +:: release_mono.bat --
            5  +::
            6  +:: Mono Release Tool
            7  +::
            8  +:: Written by Joe Mistachkin.
            9  +:: Released to the public domain, use at your own risk!
           10  +::
           11  +
           12  +SETLOCAL
           13  +
           14  +REM SET __ECHO=ECHO
           15  +REM SET __ECHO3=ECHO
           16  +IF NOT DEFINED _AECHO (SET _AECHO=REM)
           17  +IF NOT DEFINED _CECHO (SET _CECHO=REM)
           18  +IF NOT DEFINED _VECHO (SET _VECHO=REM)
           19  +
           20  +%_AECHO% Running %0 %*
           21  +
           22  +SET DUMMY2=%1
           23  +
           24  +IF DEFINED DUMMY2 (
           25  +  GOTO usage
           26  +)
           27  +
           28  +SET TOOLS=%~dp0
           29  +SET TOOLS=%TOOLS:~0,-1%
           30  +
           31  +%_VECHO% Tools = '%TOOLS%'
           32  +
           33  +IF DEFINED RELEASE_DEBUG (
           34  +  SET RELEASE_CONFIGURATIONS=DebugManagedOnly ReleaseManagedOnly
           35  +) ELSE (
           36  +  SET RELEASE_CONFIGURATIONS=ReleaseManagedOnly
           37  +)
           38  +
           39  +SET BASE_CONFIGURATIONSUFFIX=MonoOnPosix
           40  +SET YEARS=2013
           41  +SET PLATFORMS=MSIL
           42  +SET BASE_PLATFORM=Mono
           43  +SET TYPE=binary
           44  +SET RELEASE_MANAGEDONLY=1
           45  +
           46  +CALL :fn_ResetErrorLevel
           47  +
           48  +%__ECHO3% CALL "%TOOLS%\release_all.bat"
           49  +
           50  +IF ERRORLEVEL 1 (
           51  +  ECHO Failed to build Mono release files.
           52  +  GOTO errors
           53  +)
           54  +
           55  +GOTO no_errors
           56  +
           57  +:fn_ResetErrorLevel
           58  +  VERIFY > NUL
           59  +  GOTO :EOF
           60  +
           61  +:fn_SetErrorLevel
           62  +  VERIFY MAYBE 2> NUL
           63  +  GOTO :EOF
           64  +
           65  +:usage
           66  +  ECHO.
           67  +  ECHO Usage: %~nx0
           68  +  ECHO.
           69  +  GOTO errors
           70  +
           71  +:errors
           72  +  CALL :fn_SetErrorLevel
           73  +  ENDLOCAL
           74  +  ECHO.
           75  +  ECHO Release failure, errors were encountered.
           76  +  GOTO end_of_file
           77  +
           78  +:no_errors
           79  +  CALL :fn_ResetErrorLevel
           80  +  ENDLOCAL
           81  +  ECHO.
           82  +  ECHO Release success, no errors were encountered.
           83  +  GOTO end_of_file
           84  +
           85  +:end_of_file
           86  +%__ECHO% EXIT /B %ERRORLEVEL%

Changes to www/release.wiki.

    83     83     <li>Change the current directory to &quot;&lt;root&gt;\Setup&quot;.</li>
    84     84   
    85     85     <li>
    86     86       Enter the following command to build all the binaries available for Windows
    87     87       CE:
    88     88       <br />
    89     89       <br />
           90  +    <b>SET BUILD_FULL=1</b>
           91  +    <br />
           92  +    <b>SET BUILD_DEBUG=1</b>
           93  +    <br />
    90     94       <b>build_ce_200x.bat</b>
    91     95       <br />
    92     96       <br />
    93     97       <i>This assumes that Visual Studio 2005 and/or Visual Studio 2008,
    94     98       &quot;<b>Professional</b>&quot; edition or &quot;better&quot; and the
    95     99       bundled Pocket PC 2003 SDK are installed.</i>
    96    100     </li>
    97    101   
    98    102     <li>
    99    103       Enter the following command to build all the binaries available for Windows
   100    104       Embedded Compact 2013:
   101    105       <br />
   102    106       <br />
          107  +    <b>SET BUILD_FULL=1</b>
          108  +    <br />
          109  +    <b>SET BUILD_DEBUG=1</b>
          110  +    <br />
   103    111       <b>build_ce_2013.bat</b>
   104    112       <br />
   105    113       <br />
   106    114       <i>This assumes that Visual Studio 2012, &quot;<b>Professional</b>&quot;
   107    115       edition or &quot;better&quot; and the Windows Embedded Compact 2013 Toolkit
   108    116       are installed.</i>
   109    117     </li>
................................................................................
   128    136   
   129    137     <li>Change the current directory to &quot;&lt;root&gt;\Setup&quot;.</li>
   130    138   
   131    139     <li>
   132    140       Enter the following command to test all the binaries available for Windows
   133    141       CE:
   134    142       <br />
          143  +    <br />
          144  +    <b>SET TEST_DEBUG=1</b>
   135    145       <br />
   136    146       <b>test_ce_200x.bat</b>
   137    147     </li>
   138    148   
   139    149     <li>
   140    150       Make sure everything succeeds with no errors; the console output may be
   141    151       checked if any errors should occur.
................................................................................
   341    351       <br />
   342    352       <br />
   343    353       <b>SET RELEASE_DEBUG=1</b>
   344    354       <br />
   345    355       <b>release_ce_2013.bat</b>
   346    356     </li>
   347    357   
          358  +  <li>
          359  +    Make sure everything succeeds with no errors; the console output may be
          360  +    checked if any errors should occur.
          361  +  </li>
          362  +</ol>
          363  +
          364  +<a name="buildMonoBinaryPackages"></a>
          365  +<h2>Build Mono Release Packages</h2>
          366  +
          367  +<ol>
          368  +  <li>Open a normal command prompt window with &quot;cmd.exe&quot;.</li>
          369  +
          370  +  <li>Change the current directory to &quot;&lt;root&gt;\Setup&quot;.</li>
          371  +
          372  +  <li>
          373  +    Enter the following commands to build all the Mono release packages:
          374  +    <br />
          375  +    <br />
          376  +    <b>SET RELEASE_DEBUG=1</b>
          377  +    <br />
          378  +    <b>release_mono.bat</b>
          379  +  </li>
          380  +
   348    381     <li>
   349    382       Make sure everything succeeds with no errors; the console output may be
   350    383       checked if any errors should occur.
   351    384     </li>
   352    385   </ol>
   353    386   
   354    387   <a name="buildSourcePackages"></a>