libXss.so.1 was recently introduced as a dependency for correct rpm installation of vscode.
libXss.so.1 is a requirement for runtime.
this conditional check will help tooling such as yum/dnf/rpm etc ensure the proper dependency is in place at installation time and help avoid bringing in i386 dependency libraries for x86_64 architectures.
i386
libXss.so.1
x86_64
libXss.so.1()(64bit)
.rpm packages can now be build with:
gulp vscode-linux-<arch>-build-rpm
The resulting package will be output to ~/rpmbuild/RPMS/<arch>/ and can be
installed on a Red Hat-based distro with:
yum localinstall <path>
Note that Debian systems can build the package after installing the 'rpm'
package:
apt-get install rpm
This was tested building 64-bit on Ubuntu 15.10 and installing on CentOS 7.
Fixes#3595