Skip to content

Commit

Permalink
Merge branch 'release/1.1.25'
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Dec 28, 2020
2 parents 2f20d1a + 4057dd1 commit 55e739e
Show file tree
Hide file tree
Showing 39 changed files with 267 additions and 449 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Changelog
=========

v1.1.25
-------

- Add touch support
- Minor UI updates (#538, #540, #541, #543)

v1.1.24
-------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2017 Antony Male
Copyright (c) 2015-2021 Antony Male

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If you already have SyncTrayzor installed, this will update it.

### Standalone

First, you'll need .net 4.5. [Download the offline](https://www.microsoft.com/en-gb/download/details.aspx?id=42642) or [web installer](https://www.microsoft.com/en-gb/download/details.aspx?id=42643) if you don't have it installed already.
First, you'll need .net 4.7.2. [Download the offline](https://support.microsoft.com/en-gb/help/4054530/microsoft-net-framework-4-7-2-offline-installer-for-windows) or [web installer](https://support.microsoft.com/en-gb/help/4054531/microsoft-net-framework-4-7-2-web-installer-for-windows) if you don't have it installed already.

[Download `SyncTrayzorPortable-x64.zip` or `SyncTrayzorPortable-x86.zip`](https://github.com/canton7/SyncTrayzor/releases/latest).
Unzip, and run `SyncTrayzor.exe`. If you're updating, you'll need to copy the `data` folder across from your previous standalone installation.
Expand Down
34 changes: 14 additions & 20 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ require 'open-uri'
require_relative 'build/TxClient'
require_relative 'build/CsprojResxWriter'

ISCC = ENV['ISCC'] || 'C:\Program Files (x86)\Inno Setup 5\ISCC.exe'
SZIP = ENV['SZIP'] || 'C:\Program Files\7-Zip\7z.exe'
ISCC = ENV['ISCC'] || 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe'
SZIP = ENV['SZIP'] || File.join(__dir__, 'build', '7za.exe')
SIGNTOOL = ENV['SIGNTOOL'] || 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe'
VSWHERE = 'build/vswhere.exe'

CONFIG = ENV['CONFIG'] || 'Release'
MSBUILD_VERSION = '15.0'
MSBUILD_LOGGER = ENV['MSBUILD_LOGGER']

SRC_DIR = 'src/SyncTrayzor'
Expand Down Expand Up @@ -67,30 +66,24 @@ SYNCTHING_VERSIONS_TO_UPDATE = ['latest']
ARCH_CONFIG = [ArchDirConfig.new('x64', 'amd64'), ArchDirConfig.new('x86', '386')]
ASSEMBLY_INFOS = FileList['**/AssemblyInfo.cs']

def ensure_7zip
unless File.exist?(SIGNTOOL)
warn "You must install the Windows SDK"
exit 1
end
end

def build(sln, platform, rebuild = true)
if ENV['MSBUILD']
msbuild = ENV['MSBUILD']
else
path = `#{VSWHERE} -version #{MSBUILD_VERSION} -requires Microsoft.Component.MSBuild -format value -property installationPath`.chomp
msbuild = File.join(path, 'MSBuild', MSBUILD_VERSION, 'Bin', 'MSBuild.exe')
path = `#{VSWHERE} -requires Microsoft.Component.MSBuild -format value -property installationPath`.chomp
msbuild = File.join(path, 'MSBuild', 'Current', 'Bin', 'MSBuild.exe')
end

puts "MSBuild is at #{msbuild}"
tasks = rebuild ? 'Clean;Rebuild' : 'Build'
cmd = "\"#{msbuild}\" \"#{sln}\" /t:#{tasks} /p:Configuration=#{CONFIG};Platform=#{platform}"
cmd = "\"#{msbuild}\" \"#{sln}\" -t:#{tasks} -p:Configuration=#{CONFIG};Platform=#{platform}"
if MSBUILD_LOGGER
cmd << " /logger:\"#{MSBUILD_LOGGER}\" /verbosity:minimal"
cmd << " -logger:\"#{MSBUILD_LOGGER}\" /verbosity:minimal"
else
cmd << " /verbosity:quiet"
cmd << " -verbosity:quiet"
end

puts cmd
sh cmd
end

Expand Down Expand Up @@ -135,7 +128,11 @@ namespace :"sign-installer" do
ARCH_CONFIG.each do |arch_config|
desc "Sign the installer (#{arch_config.arch}). Specify PASSWORD if required"
task arch_config.arch do
ensure_7zip

unless File.exist?(SIGNTOOL)
warn "You must install the Windows SDK"
exit 1
end

unless File.exist?(PFX)
warn "#{PFX} must exist"
Expand Down Expand Up @@ -171,8 +168,6 @@ namespace :portable do
ARCH_CONFIG.each do |arch_config|
desc "Create the portable package (#{arch_config.arch})"
task arch_config.arch do
ensure_7zip

mkdir_p File.dirname(arch_config.portable_output_file)
rm arch_config.portable_output_file if File.exist?(arch_config.portable_output_file)

Expand Down Expand Up @@ -257,6 +252,7 @@ task :package => [:clean, *ARCH_CONFIG.map{ |x| :"package:#{x.arch}" }, :"create
desc 'Build chocolatey package'
task :chocolatey do
chocolatey_dir = File.dirname(CHOCOLATEY_NUSPEC)
cp Dir[File.join(DEPLOY_DIR, 'SyncTrayzorSetup-*.exe')], File.join(chocolatey_dir, 'tools')
Dir.chdir(chocolatey_dir) do
sh "choco pack"
end
Expand Down Expand Up @@ -289,8 +285,6 @@ namespace :syncthing do
ARCH_CONFIG.each do |arch_config|
desc "Download syncthing (#{arch_config.arch})"
task arch_config.arch, [:version] => [:"build-checksum-util"] do |t, args|
ensure_7zip

Dir.mktmpdir do |tmp|
download_file = File.join(tmp, File.basename(arch_config.download_uri(args[:version])))
File.open(download_file, 'wb') do |outfile|
Expand Down
Binary file added build/7za.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion chocolatey/synctrayzor.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Features include:
<tags>synctrayzor syncthing synchronization admin</tags>
<licenseUrl>https://raw.githubusercontent.com/canton7/SyncTrayzor/master/LICENSE.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.rawgit.com/canton7/SyncTrayzor/develop/SyncTrayzor.png</iconUrl>
<iconUrl>https://cdn.statically.io/gh/canton7/SyncTrayzor/develop/SyncTrayzor.png</iconUrl>
<dependencies>
<!-- Chocolatey 0.9.9 required in order to access the chocolateyPackageName and chocolateyPackageVersion environment variables -->
<dependency id="chocolatey" version="0.9.9" />
Expand Down
9 changes: 6 additions & 3 deletions chocolatey/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
$ErrorActionPreference = 'Stop'; # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageName= 'SyncTrayzor'
$url = "https://github.com/canton7/SyncTrayzor/releases/download/v${env:chocolateyPackageVersion}/SyncTrayzorSetup-x86.exe"
$url64 = "https://github.com/canton7/SyncTrayzor/releases/download/v${env:chocolateyPackageVersion}/SyncTrayzorSetup-x64.exe"
$file = (Join-Path $toolsDir 'SyncTrayzorSetup-x86.exe')
$file64 = (Join-Path $toolsDir 'SyncTrayzorSetup-x64.exe')
$silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
$fileType = 'exe'
$validExitCodes = @(0)

Install-ChocolateyPackage $packageName $fileType $silentArgs $url $url64 -validExitCodes $validExitCodes
Install-ChocolateyInstallPackage $packageName $fileType $silentArgs $file $file64 -validExitCodes $validExitCodes

Remove-Item -Force -ea 0 $file, $file64
Loading

0 comments on commit 55e739e

Please sign in to comment.