Skip to content

Commit 2fd56a0

Browse files
committed
SDA-4062 SDA installer / update size reduction
1 parent 650d13e commit 2fd56a0

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

installer/win/WixSharpInstaller/Symphony.cs

+2-8
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ static public void Main(string[] args)
7272
new Dir(@"dictionaries",
7373
new Files(@"..\..\..\dist\win-unpacked\dictionaries\*.*")
7474
),
75-
new Dir(@"library",
76-
new File(@"..\..\..\library\dictionary"),
77-
new File(@"..\..\..\library\indexvalidator-x64.exe"),
78-
new File(@"..\..\..\library\libsymphonysearch-x64.dll"),
79-
new File(@"..\..\..\library\lz4-win-x64.exe"),
80-
new File(@"..\..\..\library\tar-win.exe")
81-
),
8275
new Dir(@"locales",
8376
new Files(@"..\..\..\node_modules\electron\dist\locales\*.*")
8477
),
@@ -115,7 +108,8 @@ static public void Main(string[] args)
115108
// The build script which calls the wix# builder, will be run from a command environment which has %SYMVER% set.
116109
// So we just extract that version string, create a Version object from it, and pass it to out project definition.
117110
var version = System.Environment.GetEnvironmentVariable("SYMVER");
118-
project.Version = new System.Version(version);
111+
var updatedVersion = version.Replace("-", ".");
112+
project.Version = new System.Version(updatedVersion);
119113

120114
// To get the correct behaviour with upgrading the product, the product GUID needs to be different for every build,
121115
// but the UpgradeCode needs to stay the same. If we wanted to make a new major version and allow it to be installed

package.json

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "symphony",
33
"productName": "Symphony",
4-
"version": "23.2.0",
4+
"version": "23.4.0-1",
55
"clientVersion": "2.0.1",
66
"buildNumber": "0",
77
"searchAPIVersion": "1.55.3",
@@ -37,6 +37,7 @@
3737
},
3838
"build": {
3939
"appId": "com.symphony.electron-desktop",
40+
"compression": "maximum",
4041
"artifactName": "${productName}-${version}-${os}.${ext}",
4142
"asar": true,
4243
"asarUnpack": "**/*.node",
@@ -52,6 +53,8 @@
5253
"!.git${/*}",
5354
"!coverage/*",
5455
"!installer/*",
56+
"!dist/*",
57+
"!src/*",
5558
"!tests/*",
5659
"!node_modules/@nornagon/cld/deps/cld${/*}",
5760
"!node_modules/@nornagon/cld/build/deps${/*}",
@@ -62,13 +65,7 @@
6265
"config/Symphony.config",
6366
"config/titleBarStyles.css",
6467
"config/InstallVariant.info",
65-
"dictionaries/**",
66-
"library/libsymphonysearch.dylib",
67-
"library/indexvalidator.exec",
68-
"library/cryptoLib.dylib",
69-
"library/dictionary",
70-
"library/lz4.exec",
71-
"node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator"
68+
"dictionaries/**"
7269
],
7370
"mac": {
7471
"category": "public.app-category.business",
@@ -213,7 +210,6 @@
213210
"electron-fetch": "1.9.1",
214211
"electron-log": "4.4.8",
215212
"electron-updater": "^5.0.1",
216-
"ffi-napi": "^4.0.3",
217213
"filesize": "6.4.0",
218214
"lazy-brush": "^1.0.1",
219215
"react": "16.14.0",

0 commit comments

Comments
 (0)