Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
WineGUI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Melroy van den Berg
WineGUI
Commits
2bad733c
Commit
2bad733c
authored
May 13, 2020
by
Melroy van den Berg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add TODO fix is merged! Plus add NDEBUG flag to release build.
parent
966cfb49
Pipeline
#1875
passed with stages
in 3 minutes and 17 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
24 deletions
+18
-24
.gitlab-ci.yml
.gitlab-ci.yml
+8
-8
CMakeLists.txt
CMakeLists.txt
+1
-1
build_prod.sh
build_prod.sh
+4
-13
include/bottle_types.h
include/bottle_types.h
+4
-1
release.sh
release.sh
+1
-1
No files found.
.gitlab-ci.yml
View file @
2bad733c
...
...
@@ -19,13 +19,13 @@ build:
expire_in
:
1 week
paths
:
-
doc/doxygen/
-
build/WineGUI-*.deb
-
build/WineGUI-*.rpm
-
build/WineGUI-*.tar.gz
-
build
_prod
/WineGUI-*.deb
-
build
_prod
/WineGUI-*.rpm
-
build
_prod
/WineGUI-*.tar.gz
cache
:
key
:
"
$CI_PIPELINE_ID"
paths
:
-
build/bin
-
build
_prod
/bin
policy
:
push
publish
:
...
...
@@ -37,23 +37,23 @@ publish:
except
:
-
branches
script
:
-
export APP_VERSION=`./build/bin/winegui --version`
-
export APP_VERSION=`./build
_prod
/bin/winegui --version`
-
echo $APP_VERSION
-
./release.sh
-
./create_release_links.sh
cache
:
key
:
"
$CI_PIPELINE_ID"
paths
:
-
build/bin
-
build
_prod
/bin
policy
:
pull
#unit_test:
# stage: test
# script: ./build/bin/runTests
# script: ./build
_prod
/bin/runTests
# tags:
# - gtk
# cache:
# key: "$CI_PIPELINE_ID"
# policy: pull
# paths:
# - build/bin/
# - build
_prod
/bin/
CMakeLists.txt
View file @
2bad733c
...
...
@@ -14,7 +14,7 @@ cmake_minimum_required(VERSION 2.8.0)
# Cmake settings
set
(
CMAKE_CXX_FLAGS
"-Wall -Wextra"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3
-DNDEBUG
"
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
if
(
NOT CYGWIN
)
...
...
build_prod.sh
View file @
2bad733c
...
...
@@ -2,19 +2,10 @@
# By: Melroy van den Berg
# Description: Release production build + create Debian package file (.deb),
# RPM [Red Hat] Package Manager (.rpm) and compressed file (.tgz/.tar.gz)
if
[
!
-d
"build"
]
;
then
echo
"Creating build directory..."
mkdir
build
fi
if
[
-z
"
$(
ls
build
)
"
]
;
then
cd
build
cmake
-GNinja
-Ddoc
=
ON
-DCMAKE_BUILD_TYPE
=
Release ..
else
echo
"INFO: Only run ninja..."
cd
build
fi
rm
-rf
build_prod
mkdir
build_prod
cd
build_prod
cmake
-GNinja
-Ddoc
=
ON
-DCMAKE_BUILD_TYPE
=
Release ..
ninja
&&
echo
"INFO: Building packages..."
;
cpack
-G
"TGZ;DEB;RPM"
include/bottle_types.h
View file @
2bad733c
...
...
@@ -93,6 +93,7 @@ namespace BottleTypes {
std
::
pair
(
Windows
::
Windows2003
,
Bit
::
win64
),
std
::
pair
(
Windows
::
WindowsVista
,
Bit
::
win32
),
std
::
pair
(
Windows
::
WindowsVista
,
Bit
::
win64
),
std
::
pair
(
Windows
::
Windows2008
,
Bit
::
win32
),
std
::
pair
(
Windows
::
Windows2008
,
Bit
::
win64
),
std
::
pair
(
Windows
::
Windows7
,
Bit
::
win32
),
std
::
pair
(
Windows
::
Windows7
,
Bit
::
win64
),
...
...
@@ -219,10 +220,12 @@ namespace BottleTypes {
return
"vista"
;
case
Windows
::
Windows2008
:
return
"win2k8"
;
// Not yet implemented by Winetricks? Use 2008R2 atm (should be 'win2k8' eventually)
// TODO: Fix after PR is merged into master: https://github.com/Winetricks/winetricks/pull/1488
case
Windows
::
Windows7
:
return
"win7"
;
case
Windows
::
Windows2008R2
:
return
"win2k8"
;
// Bug in Winetricks, should be 'win2k8r2' to be unique with Windows 2000!
// TODO: Fix after PR is merged into master: https://github.com/Winetricks/winetricks/pull/1488
case
Windows
::
Windows8
:
return
"win8"
;
case
Windows
::
Windows81
:
...
...
@@ -242,7 +245,7 @@ namespace BottleTypes {
case
AudioDriver
::
alsa
:
return
"Advanced Linux Sound Architecture (ALSA)"
;
case
AudioDriver
::
coreaudio
:
return
"Core Audio"
;
return
"
Mac
Core Audio"
;
case
AudioDriver
::
oss
:
return
"Open Sound System (OSS)"
;
default:
...
...
release.sh
View file @
2bad733c
...
...
@@ -16,5 +16,5 @@ if [[ "$output" == *"$name"* ]]; then
echo
"INFO: Release is already rolled-out to the downloads folder."
else
# Roll-out the new release
sshpass
-e
scp
-o
stricthostkeychecking
=
no ./build/WineGUI-v
*
melroy@server.melroy.org:/var/www/winegui.melroy.org/html/downloads
sshpass
-e
scp
-o
stricthostkeychecking
=
no ./build
_prod
/WineGUI-v
*
melroy@server.melroy.org:/var/www/winegui.melroy.org/html/downloads
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment