Skip to content

Commit

Permalink
Update to 1.0.1, add Squirrel nuspec and release build packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
carlst99 committed Apr 8, 2020
1 parent 40a0ede commit 9910c1d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TrialManager/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override void OnStart()
throw new ApplicationException("Remember AppCenter key!");
Preferences _preferences = RealmHelpers.GetUserPreferences(RealmHelpers.GetRealmInstance());
if (_preferences.IsDiagnosticsEnabled)
AppCenter.Start("{Your App Secret}", typeof(Analytics), typeof(Crashes));
AppCenter.Start("{App Secret}", typeof(Analytics), typeof(Crashes));
#endif

base.OnStart();
Expand Down
4 changes: 2 additions & 2 deletions TrialManager/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0")]
[assembly: AssemblyFileVersion("1.0.0")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]
[assembly: NeutralResourcesLanguage("en-NZ")]
7 changes: 7 additions & 0 deletions TrialManager/TrialManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,13 @@
<Error Condition="!Exists('..\packages\squirrel.windows.1.9.1\build\squirrel.windows.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\squirrel.windows.1.9.1\build\squirrel.windows.props'))" />
<Error Condition="!Exists('..\packages\squirrel.windows.1.9.1\build\squirrel.windows.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\squirrel.windows.1.9.1\build\squirrel.windows.targets'))" />
</Target>
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release'">
<GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
<Output TaskParameter="Assemblies" ItemName="myAssemblyInfo"/>
</GetAssemblyIdentity>
<Exec Command="..\packages\NuGet.CommandLine.5.4.0\tools\NuGet.exe pack TrialManager.nuspec -Version %(myAssemblyInfo.Version) -Properties Configuration=Release -OutputDirectory $(OutDir) -BasePath $(OutDir)" />
<Exec Command="..\packages\squirrel.windows.1.9.1\tools\squirrel.exe --releasify $(OutDir)TrialManager.$([System.Version]::Parse(%(myAssemblyInfo.Version)).ToString(3)).nupkg" />
</Target>
<Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets')" />
<Import Project="..\packages\Fody.6.1.1\build\Fody.targets" Condition="Exists('..\packages\Fody.6.1.1\build\Fody.targets')" />
<Import Project="..\packages\squirrel.windows.1.9.1\build\squirrel.windows.targets" Condition="Exists('..\packages\squirrel.windows.1.9.1\build\squirrel.windows.targets')" />
Expand Down
18 changes: 18 additions & 0 deletions TrialManager/TrialManager.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>TrialManager</id>
<!-- version will be replaced by MSBuild -->
<version>0.0.0.0</version>
<title>TrialManager</title>
<authors>TrialManager</authors>
<description>Build draws for NZ Sheepdog trials</description>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright Carl Stephens © 2020</copyright>
<iconUrl>https://github.com/carlst99/TrialManager/blob/master/TrialManager/icon.ico</iconUrl>
<dependencies />
</metadata>
<files>
<file src="**.*" target="lib\net45\" exclude="*.pdb;*.nupkg;*.vshost.*"/>
</files>
</package>
1 change: 1 addition & 0 deletions TrialManager/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<package id="Nito.AsyncEx.Context" version="5.0.0" targetFramework="net461" />
<package id="Nito.AsyncEx.Tasks" version="5.0.0" targetFramework="net461" />
<package id="Nito.Disposables" version="2.0.1" targetFramework="net461" />
<package id="NuGet.CommandLine" version="5.4.0" targetFramework="net461" developmentDependency="true" />
<package id="Realm" version="4.3.0" targetFramework="net461" />
<package id="Realm.Fody" version="4.3.0" targetFramework="net461" developmentDependency="true" />
<package id="Remotion.Linq" version="2.2.0" targetFramework="net461" />
Expand Down

0 comments on commit 9910c1d

Please sign in to comment.