Commit Graph

38 Commits

Author SHA1 Message Date
Roland Rossgotterer
ab9131fdec [MacOS] Create DBus machine-id via privileged applescript 2019-02-22 20:35:47 +00:00
Roland Rossgotterer
524a2829a1 Fix installbuilder variable syntax
Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D78
2019-02-22 20:34:52 +00:00
Roland Rossgotterer
7a8ae85b5a Do not require root privileges when installing on MacOS
Requiring general root privileges raised some trust concerns by MacOS users. This reverts the latest changes to require root to install DBus machine-id into /etc. Now the user has to do that manually via sudo. A check will be added before running into an assert.
2018-12-11 17:42:54 +01:00
Roland Rossgotterer
e7966c3b0b Remove osx-intel from installbuilder platforms
osx-intel provides a fallback to the standard 32bit runtime for OS X < 10.6, but our minimum required version is 10.10.
2018-12-11 17:42:53 +01:00
Roland Rossgotterer
29f3d11da1 Fix MacOS installer to properly install DBus as root user 2018-11-29 20:54:25 +01:00
Roland Winklmeier
1104d4fb6e Cleanup created /usr/local/var/lib/dbus during Mac OS uninstallation 2018-11-16 02:49:52 +01:00
Roland Winklmeier
6d6d06030d Require installation by root user on Mac OS 2018-11-16 02:49:51 +01:00
Roland Winklmeier
2517b78c7a [Installer] Remove left over uninstall action 2018-09-17 18:29:05 +02:00
Roland Winklmeier
463beab408 [Installer] Limit LaunchAgents plist deletion to platform OSX 2018-09-17 18:29:04 +02:00
Roland Winklmeier
77a766afa9 [Installer] Kill dbus-daemon before uninstalling
ref T33
2018-09-17 18:29:03 +02:00
Roland Winklmeier
8a4b101393 [Installer] Check if swift application is running before (un-)installation
ref T33
2018-09-17 18:29:02 +02:00
Roland Winklmeier
8ed01b0259 [Installer] Split and fix the Visual Studio Redist installation
- It got splitted up into a x86 and x64 component.
- Each one is packaged only for the respective archictecture
- Always run the installer without registry checks and evaluate the return
code. Raise a warning only if its not 0 and not 1638 (newer version already
installed).

ref T344
2018-09-17 18:29:01 +02:00
Roland Winklmeier
14e778c243 [Installer] Make sure that org.swift-project is created
Make sure the folder org.swift-project is created before
lastinstallpath.txt is written to it.

ref T344
2018-09-17 18:29:00 +02:00
Roland Winklmeier
441d292b54 [Installer] Fix the Windows product display name and icon
The name was not set at all and was falling back to the fullname being swift.
Instead set it explicitly to fullname including version and architecture.
The productDisplayIcon is evaluated at installer runtime and needs to be
set to a installed icon path.
The installer icon itself was to big (> 100 kb) and got unnecessary sizes
removed.

ref T344
2018-09-17 18:28:59 +02:00
Roland Winklmeier
06656c8c5c Remove the workaround to create MacOS disk images
BitRock meanwhile fixed the issue, so use that option again instead of
the manual process.
2018-09-08 15:36:23 +02:00
Roland Winklmeier
9de30b587b installbuilder style fixes 2018-09-08 15:36:23 +02:00
Roland Winklmeier
65a8fdf251 Remember the last installation path
ref T305
2018-09-08 15:36:23 +02:00
Roland Winklmeier
f31b43ffcf Comment option to launch browser from final installer page
ref T305
2018-09-08 15:36:19 +02:00
Roland Winklmeier
f6f198af13 Replace installer icons with transparent bird
ref T305
2018-09-08 15:36:19 +02:00
Roland Winklmeier
741202a70f Add platform name to installer directory and menu shortcuts
ref T305
2018-09-08 15:34:07 +02:00
Roland Winklmeier
f53ec46d20 Change the operating system name from OSX to MacOS everywhere
Summary:
- Changed the name in all build artifacts
- Everywhere in C++

Reviewers: #swift_pilot_client, kbasan

Reviewed By: #swift_pilot_client, kbasan

Subscribers: jenkins

Maniphest Tasks: T205

Differential Revision: https://dev.swift-project.org/D69
2017-12-06 22:50:19 +01:00
Roland Winklmeier
be321a3fa5 Replace more installer dummy icons with swift icons
Summary:
There were still many TODO's in installbuilder project file. This change replaces them with path to swift icons.

Depends on D58

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D59
2017-11-03 12:10:00 +01:00
Roland Winklmeier
8ee73d18e9 [MacOS] Create installer disk image manually to workaround broken hdiutil
Summary:
Apple broke the hdiutil on MacOS 10.13. If one passes multiple -srcfolder
arguments, it dead locks with 100 % CPU forever. Since there is no way to
tell Bitrock to use only one -srcfolder argument, we have to go the
advanced way and create the disk image file manually. This also allows
us to customize it more in the future.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Maniphest Tasks: T181

Differential Revision: https://dev.swift-project.org/D58
2017-11-03 12:05:16 +01:00
Roland Winklmeier
ab1a200e78 Remove the DBus LaunchAgent when uninstalling
ref T174
2017-10-18 22:58:20 +02:00
Roland Winklmeier
e2f7ea87a3 [MacOS] Write dbus session launchd script during installation
DBus session needs to be started from a central place. On Mac OS, the
recommended solution is launchd service since all dbus clients will query
launchd for the session address first. All other solutions would be hacky.
With this script, launchd will start dbus-daemon on demand and provide
the enviromental variable DBUS_LAUNCHD_SESSION_BUS_SOCKET.
We put this into the user launch agents folder to make it a user session.

ref T170
2017-10-13 17:01:08 +02:00
Roland Winklmeier
79dcbd98a2 Remove the required installation by a privileged user
This was required by a wrong owner ship configuration on Mac OS slave.

ref T170
2017-10-13 17:01:07 +02:00
Roland Winklmeier
d505f7b9a4 Disable installing of Bitrock auto updater
Summary:
Disabling happens in two steps. The binary was created as dependent target
of 'make create_installer'. This step is now skipped.
The second step is to remove it from the installbuilder project
configuration.
Disabling only so far to easily get it back if needed.

ref T124

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Maniphest Tasks: T124

Differential Revision: https://dev.swift-project.org/D46
2017-09-24 19:52:34 +01:00
Roland Winklmeier
64b52f7026 [Installer] Run swift in background after installation
Summary:
After installation, swiftlauncher is executed in wizard mode. However, installer
kept running in the background until the launcher was closed. Instead,
run swift in background which allows the installer to quit.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D19
2017-05-05 23:08:42 +01:00
Roland Winklmeier
f952775665 Use dbus-uuidgen to create dbus machine id after installation
Summary:
The file machine-id was missing on target machines and needs
to be created during installation.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Subscribers: jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D17
2017-05-05 23:08:37 +01:00
Roland Winklmeier
108336a9cc Add link to swift project webpage to installer finalPageActionList
refs #902
2017-04-17 23:59:55 +01:00
Roland Winklmeier
e9b79fbc8c Remove README file from installer
refs #902
2017-04-17 23:59:53 +01:00
Roland Winklmeier
b6fb532f3a Set installbuilder project.version dynamically from qmake
Instead of maintaining the version number in project.xml, pass it to
installbuilder from qmake project.

refs #902
2017-04-17 23:59:52 +01:00
Roland Winklmeier
452b2ce0d6 Run swiftlauncher with correct arguments after installation
refs #902
2017-04-17 23:59:48 +01:00
Roland Winklmeier
1eacf9b172 Installbuilder Mac OS X setup
refs #615
2016-05-20 01:40:10 +02:00
Roland Winklmeier
59551c0f1b Installbuilder Linux setup
refs #615
2016-05-20 01:36:55 +02:00
Roland Winklmeier
4ed4771271 Installbuilder Windows fixes
refs #615
2016-05-20 01:36:52 +02:00
Roland Winklmeier
c78e69e05e Align installer files with 0.6.1 release binaries 2015-11-27 15:12:39 +01:00
Roland Winklmeier
55b4a0b2e2 Bitrock Installbuilder project
refs #486
2015-11-19 21:07:20 +00:00