Skip to content

Instantly share code, notes, and snippets.

@pvandervelde
Created September 11, 2013 10:39
Show Gist options
  • Save pvandervelde/6521946 to your computer and use it in GitHub Desktop.
Save pvandervelde/6521946 to your computer and use it in GitHub Desktop.
The msbuild file that can be used to create the application update manifest files for the sherlock services.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0"
DefaultTargets="Run"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PathManifestExe Condition=" '$(PathManifestExe)' == '' ">${PATH_TO_NADONI_DIRECTORY}$\nAdoni.ManifestBuilder.exe</PathManifestExe>
</PropertyGroup>
<Target Name="Run" DependsOnTargets="_DisplayInfo;_BuildManifests">
<!-- Do nothing here -->
</Target>
<!-- Display info -->
<Target Name="_DisplayInfo">
<Message Text="Creating update manifests ..." />
<Message Text="Deploy directory: $(DirDeploy)" />
<Message Text="Manifest building tool: $(PathManifestExe)" />
</Target>
<PropertyGroup>
<FileNameMasterServicePackage>service.master.zip</FileNameMasterServicePackage>
<FileMasterServicePackage>$(DirDeploy)\$(FileNameMasterServicePackage)</FileMasterServicePackage>
<FileNameExecutorServicePackage>service.executor.zip</FileNameExecutorServicePackage>
<FileExecutorServicePackage>$(DirDeploy)\$(FileNameExecutorServicePackage)</FileExecutorServicePackage>
<FileMasterServiceManifest>$(DirDeploy)\masterservice.manifest</FileMasterServiceManifest>
<UrlMasterServicePackage>${URL_TO_APP_UPDATE}$/$(FileNameMasterServicePackage)</UrlMasterServicePackage>
<FileExecutorServiceManifest>$(DirDeploy)\executorservice.manifest</FileExecutorServiceManifest>
<UrlExecutorServicePackage>${URL_TO_APP_UPDATE}$/$(FileNameExecutorServicePackage)</UrlExecutorServicePackage>
<KeyFile>${MANIFEST_SIGNING_KEY_PATH}$</KeyFile>
</PropertyGroup>
<Target Name="_BuildManifests" DependsOnTargets="_DisplayInfo" Condition="Exists('$(DirDeploy)')">
<Exec Command="$(PathManifestExe) --ProductVersion=$(Version) --ProductName=Sherlock.Service.Master.exe --FilePath=$(FileMasterServicePackage) --DownloadUrl=$(UrlMasterServicePackage) --KeyFile=$(KeyFile) --Output=$(FileMasterServiceManifest)" />
<Exec Command="$(PathManifestExe) --ProductVersion=$(Version) --ProductName=Sherlock.Service.Executor.exe --FilePath=$(FileExecutorServicePackage) --DownloadUrl=$(UrlExecutorServicePackage) --KeyFile=$(KeyFile) --Output=$(FileExecutorServiceManifest)" />
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment