SYNERGY-400 Unify artifacts names (#6896)
* SYNERGY-400 Unify artifacts names * SYNEGY-400 Check stage during tag creation
This commit is contained in:
16
.github/actions/build-number/build-number.js
vendored
16
.github/actions/build-number/build-number.js
vendored
@ -17,6 +17,10 @@ function VersionPart(part) {
|
||||
return m_number;
|
||||
}
|
||||
|
||||
self.getSuffix = function(){
|
||||
return m_suffix;
|
||||
}
|
||||
|
||||
self.toString = function() {
|
||||
return m_prefix + m_number.toString() + m_suffix;
|
||||
}
|
||||
@ -93,6 +97,7 @@ function Version(version) {
|
||||
m_minor.setPart(versionParts[1]);
|
||||
m_build.setPart(versionParts[2]);
|
||||
m_patch.setNumber(m_build.getNumber());
|
||||
m_build.setNumber(0);
|
||||
}
|
||||
else if (versionParts.length == 4) {
|
||||
m_major.setPart(versionParts[0]);
|
||||
@ -117,10 +122,15 @@ function Version(version) {
|
||||
return m_patch.getNumber();
|
||||
}
|
||||
|
||||
this.getStage = function(){
|
||||
return m_build.getSuffix();
|
||||
}
|
||||
|
||||
this.isSamePatch = function(version) {
|
||||
return (m_major.getNumber() == version.getMajor() &&
|
||||
m_minor.getNumber() == version.getMinor() &&
|
||||
m_patch.getNumber() == version.getPatch());
|
||||
return (this.getMajor() == version.getMajor() &&
|
||||
this.getMinor() == version.getMinor() &&
|
||||
this.getPatch() == version.getPatch() &&
|
||||
this.getStage() == version.getStage());
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
2
.github/workflows/job-sonarcloud.yml
vendored
2
.github/workflows/job-sonarcloud.yml
vendored
@ -3,7 +3,7 @@ name: SonarCloud Static Analysis
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
@ -58,8 +58,8 @@ steps:
|
||||
. ./build-release/version
|
||||
SYNERGY_VERSION="$SYNERGY_VERSION_MAJOR.$SYNERGY_VERSION_MINOR.$SYNERGY_VERSION_PATCH"
|
||||
SYNERGY_REVISION=`git rev-parse --short=8 HEAD`
|
||||
SYNERGY_DEB_VERSION="${SYNERGY_VERSION}.${SYNERGY_VERSION_STAGE}~b$(Build.BuildNumber)+${SYNERGY_REVISION}"
|
||||
SYNERGY_RPM_VERSION="${SYNERGY_VERSION}-$(Build.BuildNumber).${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
|
||||
SYNERGY_DEB_VERSION="${SYNERGY_VERSION}.${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
|
||||
SYNERGY_RPM_VERSION="${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION_BUILD]${SYNERGY_VERSION_BUILD}"
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION_STAGE]${SYNERGY_VERSION_STAGE}"
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION]${SYNERGY_VERSION}"
|
||||
@ -75,7 +75,7 @@ steps:
|
||||
mkdir standard_package
|
||||
cd ..
|
||||
filename=$(ls synergy_*.deb)
|
||||
filename_new="synergy_${SYNERGY_DEB_VERSION}_$(name)${filename##*${SYNERGY_REVISION}}"
|
||||
filename_new="synergy_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}_$(name)${filename##*${SYNERGY_REVISION}}"
|
||||
mv $filename $(Build.Repository.LocalPath)/standard_package/$filename_new
|
||||
cd $(Build.Repository.LocalPath)/standard_package
|
||||
md5sum $filename_new >> ${filename_new}.checksum.txt
|
||||
@ -95,7 +95,7 @@ steps:
|
||||
mkdir enterprise_package
|
||||
cd ..
|
||||
filename=$(ls synergy_*.deb)
|
||||
filename_new="synergy-enterprise_$(SYNERGY_DEB_VERSION)_$(name)${filename##*$(SYNERGY_REVISION)}"
|
||||
filename_new="synergy-enterprise_${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}_$(name)${filename##*$(SYNERGY_REVISION)}"
|
||||
mv $filename $(Build.Repository.LocalPath)/enterprise_package/$filename_new
|
||||
cd $(Build.Repository.LocalPath)/enterprise_package
|
||||
md5sum $filename_new >> ${filename_new}.checksum.txt
|
||||
@ -112,14 +112,14 @@ steps:
|
||||
make install/strip
|
||||
cd rpm
|
||||
rpmbuild -bb --define "_topdir $(pwd)" --buildroot $(pwd)/BUILDROOT synergy.spec
|
||||
rpmlint --verbose RPMS/x86_64/*.rpm
|
||||
cd RPMS/x86_64
|
||||
rpmlint --verbose RPMS/*.rpm
|
||||
cd RPMS
|
||||
filename=$(ls *.rpm)
|
||||
md5sum $filename >> ${filename}.checksum.txt
|
||||
sha1sum $filename >> ${filename}.checksum.txt
|
||||
sha256sum $filename >> ${filename}.checksum.txt
|
||||
cd ..
|
||||
mv x86_64 $(Build.Repository.LocalPath)/standard_package
|
||||
mv RPMS $(Build.Repository.LocalPath)/standard_package
|
||||
displayName: "Package Binary RPM(standard)"
|
||||
condition: eq(variables['packager'],'rpm')
|
||||
env:
|
||||
@ -129,15 +129,15 @@ steps:
|
||||
cd build-ent
|
||||
make install/strip
|
||||
cd rpm
|
||||
rpmbuild -bb --define "_topdir $(pwd)" --buildroot $(pwd)/BUILDROOT synergy.spec
|
||||
rpmlint --verbose RPMS/x86_64/*.rpm
|
||||
cd RPMS/x86_64
|
||||
rpmbuild -bb --define "_topdir $(pwd)" --buildroot $(pwd)/BUILDROOT synergy-enterprise.spec
|
||||
rpmlint --verbose RPMS/*.rpm
|
||||
cd RPMS
|
||||
filename=$(ls *.rpm)
|
||||
md5sum $filename >> ${filename}.checksum.txt
|
||||
sha1sum $filename >> ${filename}.checksum.txt
|
||||
sha256sum $filename >> ${filename}.checksum.txt
|
||||
cd ..
|
||||
mv x86_64 $(Build.Repository.LocalPath)/enterprise_package
|
||||
mv RPMS $(Build.Repository.LocalPath)/enterprise_package
|
||||
ls -la
|
||||
displayName: "Package Binary RPM(enterprise)"
|
||||
condition: eq(variables['packager'],'rpm')
|
||||
|
||||
@ -75,8 +75,8 @@ steps:
|
||||
. ./build/version
|
||||
SYNERGY_VERSION="$SYNERGY_VERSION_MAJOR.$SYNERGY_VERSION_MINOR.$SYNERGY_VERSION_PATCH"
|
||||
SYNERGY_REVISION=`git rev-parse --short=8 HEAD`
|
||||
SYNERGY_DMG_VERSION="${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}_b$(Build.BuildNumber)-${SYNERGY_REVISION}"
|
||||
SYNERGY_DMG_FILENAME=$(prefix)_v${SYNERGY_DMG_VERSION}_macos_$(platform).dmg
|
||||
SYNERGY_DMG_VERSION="${SYNERGY_VERSION}-${SYNERGY_VERSION_STAGE}.${SYNERGY_REVISION}"
|
||||
SYNERGY_DMG_FILENAME=$(prefix)_${SYNERGY_DMG_VERSION}_macos_$(platform).dmg
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION_STAGE]${SYNERGY_VERSION_STAGE}"
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION_BUILD]${SYNERGY_VERSION_BUILD}"
|
||||
echo "##vso[task.setvariable variable=SYNERGY_VERSION]${SYNERGY_VERSION}"
|
||||
|
||||
@ -177,17 +177,16 @@ steps:
|
||||
echo ##vso[task.setvariable variable=SYNERGY_VERSION]%SYNERGY_VERSION%
|
||||
echo ##vso[task.setvariable variable=SYNERGY_REVISION]%SYNERGY_REVISION%
|
||||
displayName: "Set Variables"
|
||||
condition: eq(variables['Build.SourceBranch'], 'refs/heads/master')
|
||||
|
||||
- script: |
|
||||
cd $(Build.Repository.LocalPath)\build32\installer\bin\Release\
|
||||
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_REVISION)_windows_x86.msi
|
||||
set FILENAME=$(prefix)_$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE).$(SYNERGY_REVISION)_windows_x86.msi
|
||||
ren "Synergy.msi" "%FILENAME%"
|
||||
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe md5 %FILENAME% > %FILENAME%.checksum.txt
|
||||
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha1 %FILENAME% >> %FILENAME%.checksum.txt
|
||||
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha256 %FILENAME% >> %FILENAME%.checksum.txt
|
||||
cd $(Build.Repository.LocalPath)\build64\installer\bin\Release\
|
||||
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_REVISION)_windows_x64.msi
|
||||
set FILENAME=$(prefix)_$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE).$(SYNERGY_REVISION)_windows_x64.msi
|
||||
ren "Synergy.msi" "%FILENAME%"
|
||||
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe md5 %FILENAME% > %FILENAME%.checksum.txt
|
||||
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha1 %FILENAME% >> %FILENAME%.checksum.txt
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
v1.13.1-snapshot
|
||||
===========
|
||||
===========
|
||||
|
||||
v1.13.0-stable
|
||||
===========
|
||||
Bug fixes:
|
||||
|
||||
@ -67,13 +67,13 @@ jobs:
|
||||
catalina-std:
|
||||
image: macOS-10.15
|
||||
platform: x86-64
|
||||
version: 10.15
|
||||
version: 10.14
|
||||
buildType: "standard"
|
||||
prefix: "synergy"
|
||||
catalina-ent:
|
||||
image: macOS-10.15
|
||||
platform: x86-64
|
||||
version: 10.15
|
||||
version: 10.14
|
||||
buildType: "enterprise"
|
||||
prefix: "synergy-enterprise"
|
||||
pool:
|
||||
@ -98,7 +98,7 @@ jobs:
|
||||
vs2019ent:
|
||||
image: windows-2019
|
||||
buildType: "enterprise"
|
||||
prefix: "synergy_enterprise"
|
||||
prefix: "synergy-enterprise"
|
||||
|
||||
pool:
|
||||
vmImage: $[ variables['image'] ]
|
||||
|
||||
@ -6,9 +6,9 @@ cmake_minimum_required (VERSION 3.4)
|
||||
|
||||
set (SYNERGY_VERSION_MAJOR 1)
|
||||
set (SYNERGY_VERSION_MINOR 13)
|
||||
set (SYNERGY_VERSION_PATCH 0)
|
||||
set (SYNERGY_VERSION_PATCH 1)
|
||||
set (SYNERGY_VERSION_BUILD 1)
|
||||
set (SYNERGY_VERSION_STAGE "stable")
|
||||
set (SYNERGY_VERSION_STAGE "snapshot")
|
||||
|
||||
#
|
||||
# Version from CI
|
||||
|
||||
29
dist/rpm/synergy-enterprise.spec.in
vendored
Normal file
29
dist/rpm/synergy-enterprise.spec.in
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
%define _rpmfilename %%{NAME}_%%{Version}-%%{Release}.rpm
|
||||
|
||||
Name: synergy-enterprise
|
||||
Version: @SYNERGY_VERSION@
|
||||
Summary: Keyboard and mouse sharing solution
|
||||
Group: Applications/Productivity
|
||||
URL: https://symless.com/synergy
|
||||
Source: https://symless.com/synergy/downloads
|
||||
Vendor: Symless
|
||||
Packager: Symless <engineering@symless.com>
|
||||
License: GPLv2
|
||||
Release: @SYNERGY_SNAPSHOT_INFO@%{?dist}
|
||||
|
||||
%description
|
||||
Synergy allows you to share one mouse and keyboard between multiple computers.
|
||||
Work seamlessly across Windows, macOS and Linux.
|
||||
|
||||
%files
|
||||
%defattr(755,root,root,-)
|
||||
%{_bindir}/synergy
|
||||
%{_bindir}/synergyc
|
||||
%{_bindir}/synergys
|
||||
%{_bindir}/syntool
|
||||
%attr(644,-,-) %{_datarootdir}/applications/synergy.desktop
|
||||
%attr(644,-,-) %{_datarootdir}/icons/hicolor/scalable/apps/synergy.svg
|
||||
|
||||
%changelog
|
||||
* Wed Apr 26 2017 Symless <engineering@symless.com>
|
||||
- Initial version of the package
|
||||
4
dist/rpm/synergy.spec.in
vendored
4
dist/rpm/synergy.spec.in
vendored
@ -1,3 +1,5 @@
|
||||
%define _rpmfilename %%{NAME}_%%{VERSION}-%%{RELEASE}.rpm
|
||||
|
||||
Name: synergy
|
||||
Version: @SYNERGY_VERSION@
|
||||
Summary: Keyboard and mouse sharing solution
|
||||
@ -7,7 +9,7 @@ Source: https://symless.com/synergy/downloads
|
||||
Vendor: Symless
|
||||
Packager: Symless <engineering@symless.com>
|
||||
License: GPLv2
|
||||
Release: @SYNERGY_VERSION_BUILD@@SYNERGY_SNAPSHOT_INFO@%{?dist}
|
||||
Release: @SYNERGY_SNAPSHOT_INFO@%{?dist}
|
||||
|
||||
%description
|
||||
Synergy allows you to share one mouse and keyboard between multiple computers.
|
||||
|
||||
Reference in New Issue
Block a user