Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 70e0242

Browse files
committed
Merge branch 'v1-1'
2 parents 75b2f2f + bcf7e9b commit 70e0242

File tree

6 files changed

+55
-9
lines changed

6 files changed

+55
-9
lines changed

.travis.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
os: osx
2+
osx_image: xcode8.3
3+
sudo: required
4+
5+
language: cpp
6+
7+
compiler:
8+
- gcc
9+
10+
before_install:
11+
- brew update
12+
- brew install jq
13+
- brew install cartr/qt4/qt@4
14+
- brew install asciidoctor
15+
16+
before_script:
17+
- git clone --depth 1 https://github.com/openscap/openscap.git -b master
18+
- pushd openscap/build
19+
- cmake -DENABLE_PROBES=FALSE ../
20+
- make -j 4
21+
- make install
22+
- popd
23+
24+
script:
25+
- ./build-for-osx.sh
26+
- wget `curl -s https://api.github.com/repos/openscap/scap-security-guide/releases/latest?access_token=$GITHUB_TOKEN | jq -r ".assets[] | select(.name | test(\"(scap-security-guide-[0-9].[0-9].[0-9]*).zip\")) | .browser_download_url"` -O ssg.zip
27+
- mkdir -p `pwd`/scap-workbench.app/Contents/Resources/ssg/ && unzip ssg.zip -d `pwd`/scap-workbench.app/Contents/Resources/ssg/
28+
- cd build-osx && sh osx-create-dmg.sh
29+
30+
deploy:
31+
provider: releases
32+
api_key: $GITHUB_TOKEN
33+
file: scap-workbench-$TRAVIS_TAG.dmg
34+
skip_cleanup: true
35+
on:
36+
tags: true

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ configure_file("scap-workbench-oscap.policy.in" "${CMAKE_CURRENT_BINARY_DIR}/sca
125125
if (WIN32)
126126
configure_file("win32-resource.rc.in" "${CMAKE_CURRENT_BINARY_DIR}/win32-resource.rc")
127127
configure_file("scap-workbench.wxs.in" "${CMAKE_CURRENT_BINARY_DIR}/scap-workbench.wxs")
128+
configure_file("AppIcon.ico" "${CMAKE_CURRENT_BINARY_DIR}/scap-workbench/AppIcon.ico" COPYONLY)
129+
configure_file("banner.png" "${CMAKE_CURRENT_BINARY_DIR}/banner.png" COPYONLY)
130+
configure_file("dialog.png" "${CMAKE_CURRENT_BINARY_DIR}/dialog.png" COPYONLY)
131+
configure_file("win32-LICENSE.rtf" "${CMAKE_CURRENT_BINARY_DIR}/win32-LICENSE.rtf" COPYONLY)
128132
endif()
129133

130134
# Enforce std=c++11 for old gcc versions to fix build in RHEL 7

banner.png

5.83 KB
Loading

build/.gitkeep

Whitespace-only changes.

dialog.png

14.8 KB
Loading

scap-workbench.wxs.in

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3-
<Product Id="171211AD-F987-4051-BF5A-30A116CD6784" Name="SCAP Workbench" Language="1033" Version="@SCAP_WORKBENCH_VERSION_MAJOR@.@SCAP_WORKBENCH_VERSION_MINOR@.@[email protected]" Manufacturer="OpenSCAP" UpgradeCode="E3925738-54A3-402B-852D-866BEF6FC98C">
4-
<Package Description="SCAP Workbench" Comments="SCAP Workbench" InstallerVersion="200" Compressed="yes" />
3+
<?define VERSION="@SCAP_WORKBENCH_VERSION_MAJOR@.@SCAP_WORKBENCH_VERSION_MINOR@.@[email protected]" ?>
4+
<Product Id="171211AD-F987-4051-BF5A-30A116CD6784" Name="SCAP Workbench" Language="1033" Version="$(var.VERSION)" Manufacturer="OpenSCAP" UpgradeCode="E3925738-54A3-402B-852D-866BEF6FC98C">
5+
<Package Description="SCAP Workbench" Comments="SCAP Workbench" InstallerVersion="200" Compressed="yes" InstallPrivileges="elevated" InstallScope="perMachine" />
56
<Media Id="1" Cabinet="simple.cab" EmbedCab="yes" />
67
<Directory Id="TARGETDIR" Name="SourceDir">
78
<Directory Id="ProgramFilesFolder" Name="PFiles">
@@ -111,9 +112,9 @@
111112
</Component>
112113

113114
<Component Id="SCAP_WORKBENCH.EXE" DiskId="1" Guid="628FE581-5590-43BF-B8E6-46B3FB4AD6B2">
114-
<File Id="SCAP_WORKBENCH.EXE" Name="scap-workbench.exe" Source="scap-workbench\scap-workbench.exe">
115-
<Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="SCAP Workbench" WorkingDirectory="INSTALLDIR" Advertise="no" Icon="DesktopIcon.exe" IconIndex="0" />
116-
<Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="SCAP Workbench" Advertise="no" Icon="StartMenuIcon.exe" IconIndex="0" />
115+
<File Id="SCAP_WORKBENCH.EXE" Name="scap-workbench.exe" Source="scap-workbench\scap-workbench.exe" Vital="yes" KeyPath="yes">
116+
<Shortcut Id="desktopShortcut" Directory="DesktopFolder" Name="SCAP Workbench" WorkingDirectory="INSTALLDIR" Advertise="yes" Icon="DesktopIcon.exe" IconIndex="0" />
117+
<Shortcut Id="ExeShortcut" Directory="ProgramMenuDir" Name="SCAP Workbench" Advertise="yes" Icon="StartMenuIcon.exe" IconIndex="0" />
117118
</File>
118119
</Component>
119120

@@ -287,10 +288,11 @@
287288
</Directory>
288289
<Directory Id="DesktopFolder" />
289290
<Directory Id="ProgramMenuFolder">
290-
<Directory Id="ProgramMenuDir" Name="OpenSCAP">
291+
<Directory Id="ProgramMenuDir" Name="scap-workbench" />
291292
<Component Id="StartMenuShortcuts" Guid="4E5A445A-89F2-4415-A56A-64A604DB7256">
292-
<RemoveFolder Id="ProgramMenuDir" On="uninstall" />
293-
<RegistryValue Root="HKCU" Key="Software\[Manufacturer]\[ProductName]" Type="string" Value="" />
293+
<RemoveFolder Id="RemoveProgramMenuDir" Directory="ProgramMenuDir" On="uninstall" />
294+
<RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Name="installed" Type="integer" Value="1" />
295+
<RegistryValue Root="HKMU" Key="Software\[Manufacturer]\[ProductName]" Name="version" Type="string" Value="$(var.VERSION)" />
294296
</Component>
295297
</Directory>
296298
</Directory>
@@ -391,6 +393,10 @@
391393
<UIRef Id="WixUI_Minimal" />
392394
<Icon Id="DesktopIcon.exe" SourceFile="scap-workbench\scap-workbench.exe" />
393395
<Icon Id="StartMenuIcon.exe" SourceFile="scap-workbench\scap-workbench.exe" />
394-
<WixVariable Id="WixUILicenseRtf" Value="@CMAKE_SOURCE_DIR@\win32-LICENSE.rtf" />
396+
<Icon Id="AppIcon.ico" SourceFile="scap-workbench\AppIcon.ico" />
397+
<Property Id="ARPPRODUCTICON" Value="AppIcon.ico" />
398+
<WixVariable Id="WixUILicenseRtf" Value="win32-LICENSE.rtf" />
399+
<WixVariable Id="WixUIBannerBmp" Value="banner.bmp" />
400+
<WixVariable Id="WixUIDialogBmp" Value="dialog.bmp" />
395401
</Product>
396402
</Wix>

0 commit comments

Comments
 (0)