Skip to content

Commit

Permalink
SDA-4062 SDA installer / update size reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
sbenmoussati committed Jan 31, 2023
1 parent 650d13e commit 2fd56a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
10 changes: 2 additions & 8 deletions installer/win/WixSharpInstaller/Symphony.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@ static public void Main(string[] args)
new Dir(@"dictionaries",
new Files(@"..\..\..\dist\win-unpacked\dictionaries\*.*")
),
new Dir(@"library",
new File(@"..\..\..\library\dictionary"),
new File(@"..\..\..\library\indexvalidator-x64.exe"),
new File(@"..\..\..\library\libsymphonysearch-x64.dll"),
new File(@"..\..\..\library\lz4-win-x64.exe"),
new File(@"..\..\..\library\tar-win.exe")
),
new Dir(@"locales",
new Files(@"..\..\..\node_modules\electron\dist\locales\*.*")
),
Expand Down Expand Up @@ -115,7 +108,8 @@ static public void Main(string[] args)
// The build script which calls the wix# builder, will be run from a command environment which has %SYMVER% set.
// So we just extract that version string, create a Version object from it, and pass it to out project definition.
var version = System.Environment.GetEnvironmentVariable("SYMVER");
project.Version = new System.Version(version);
var updatedVersion = version.Replace("-", ".");
project.Version = new System.Version(updatedVersion);

// To get the correct behaviour with upgrading the product, the product GUID needs to be different for every build,
// but the UpgradeCode needs to stay the same. If we wanted to make a new major version and allow it to be installed
Expand Down
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "symphony",
"productName": "Symphony",
"version": "23.2.0",
"version": "23.4.0-1",
"clientVersion": "2.0.1",
"buildNumber": "0",
"searchAPIVersion": "1.55.3",
Expand Down Expand Up @@ -37,6 +37,7 @@
},
"build": {
"appId": "com.symphony.electron-desktop",
"compression": "maximum",
"artifactName": "${productName}-${version}-${os}.${ext}",
"asar": true,
"asarUnpack": "**/*.node",
Expand All @@ -52,6 +53,8 @@
"!.git${/*}",
"!coverage/*",
"!installer/*",
"!dist/*",
"!src/*",
"!tests/*",
"!node_modules/@nornagon/cld/deps/cld${/*}",
"!node_modules/@nornagon/cld/build/deps${/*}",
Expand All @@ -62,13 +65,7 @@
"config/Symphony.config",
"config/titleBarStyles.css",
"config/InstallVariant.info",
"dictionaries/**",
"library/libsymphonysearch.dylib",
"library/indexvalidator.exec",
"library/cryptoLib.dylib",
"library/dictionary",
"library/lz4.exec",
"node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator"
"dictionaries/**"
],
"mac": {
"category": "public.app-category.business",
Expand Down Expand Up @@ -213,7 +210,6 @@
"electron-fetch": "1.9.1",
"electron-log": "4.4.8",
"electron-updater": "^5.0.1",
"ffi-napi": "^4.0.3",
"filesize": "6.4.0",
"lazy-brush": "^1.0.1",
"react": "16.14.0",
Expand Down

0 comments on commit 2fd56a0

Please sign in to comment.