##// END OF EJS Templates
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858)...
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858) Sometimes the systems that run our test suite don't have enough entropy and they cannot produce target file of the expected size using /dev/random, which results in test failures. Switching to /dev/urandom would give us way more available data at the cost of it being less "random", but we don't really need to use entropy for this task at all, since we only care if the file size after compression is big enough to not be stored inline in the revlog. So let's use something that we already have used to generate this kind of data in other tests.

File last commit:

r50725:bc59c1e5 stable
r52255:e7be2ddf stable
Show More
mercurial.iss
82 lines | 2.4 KiB | text/plain | TextLexer
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 ; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#ifndef ARCH
#define ARCH = "x86"
#endif
[Setup]
Matt Harbison
copyright: update to 2023
r50725 AppCopyright=Copyright 2005-2023 Olivia Mackall and others
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 AppName=Mercurial
AppVersion={#VERSION}
Gregory Szorc
packaging: add -python2 to Windows installer filenames...
r45276 OutputBaseFilename=Mercurial-{#VERSION}{#SUFFIX}
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 #if ARCH == "x64"
AppVerName=Mercurial {#VERSION} (64-bit)
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
#else
AppVerName=Mercurial {#VERSION}
#endif
Gregory Szorc
packaging: stage installed files for Inno...
r43916 InfoAfterFile=../postinstall.txt
LicenseFile=Copying.txt
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 ShowLanguageDialog=yes
Raphaël Gomès
contributor: change mentions of mpm to olivia...
r47575 AppPublisher=Olivia Mackall and others
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 AppPublisherURL=https://mercurial-scm.org/
AppSupportURL=https://mercurial-scm.org/
AppUpdatesURL=https://mercurial-scm.org/
Gregory Szorc
packaging: process Inno Setup files with Jinja2...
r43915 {{ 'AppID={{4B95A5F1-EF59-4B08-BED8-C891C46121B3}' }}
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 AppContact=mercurial@mercurial-scm.org
DefaultDirName={pf}\Mercurial
Gregory Szorc
packaging: stage installed files for Inno...
r43916 SourceDir=stage
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 VersionInfoDescription=Mercurial distributed SCM (version {#VERSION})
Matt Harbison
copyright: update to 2023
r50725 VersionInfoCopyright=Copyright 2005-2023 Olivia Mackall and others
Raphaël Gomès
contributor: change mentions of mpm to olivia...
r47575 VersionInfoCompany=Olivia Mackall and others
Matt Harbison
packaging: set the FileVersion field in the Inno installer executable...
r44708 VersionInfoVersion={#QUAD_VERSION}
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 InternalCompressLevel=max
SolidCompression=true
Gregory Szorc
packaging: stage installed files for Inno...
r43916 SetupIconFile=../mercurial.ico
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012 AllowNoIcons=true
DefaultGroupName=Mercurial
PrivilegesRequired=none
Gregory Szorc
inno: replace add_path.exe with a Pascal script...
r42013 ChangesEnvironment=true
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012
[Files]
Gregory Szorc
packaging: stage installed files for Inno...
r43916 {% for entry in package_files -%}
Source: {{ entry.source }}; DestDir: {{ entry.dest_dir }}
{%- if entry.metadata %}; {{ entry.metadata }}{% endif %}
{% endfor %}
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012
[INI]
Filename: {app}\Mercurial.url; Section: InternetShortcut; Key: URL; String: https://mercurial-scm.org/
[UninstallDelete]
Type: files; Name: {app}\Mercurial.url
Matt Harbison
packaging: rename hgrc.d to defaultrc for Windows config files next to the exe...
r44614 Type: filesandordirs; Name: {app}\defaultrc
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012
[Icons]
Name: {group}\Uninstall Mercurial; Filename: {uninstallexe}
Name: {group}\Mercurial Command Reference; Filename: {app}\Docs\hg.1.html
Name: {group}\Mercurial Configuration Files; Filename: {app}\Docs\hgrc.5.html
Name: {group}\Mercurial Ignore Files; Filename: {app}\Docs\hgignore.5.html
Name: {group}\Mercurial Web Site; Filename: {app}\Mercurial.url
Gregory Szorc
inno: replace add_path.exe with a Pascal script...
r42013 [Tasks]
Name: modifypath; Description: Add the installation path to the search path; Flags: unchecked
Gregory Szorc
inno: move inno installer files to contrib/packaging/inno...
r42012
[Code]
procedure Touch(fn: String);
begin
SaveStringToFile(ExpandConstant(fn), '', False);
end;
Gregory Szorc
inno: replace add_path.exe with a Pascal script...
r42013
const
ModPathName = 'modifypath';
ModPathType = 'user';
function ModPathDir(): TArrayOfString;
begin
setArrayLength(Result, 1)
Result[0] := ExpandConstant('{app}');
end;
Gregory Szorc
packaging: process Inno Setup files with Jinja2...
r43915
{% include 'modpath.iss' %}