set codename to master and version to 0.0.1

Dieser Commit ist enthalten in:
Reinder Feenstra 2020-05-06 16:00:23 +02:00
Ursprung e52d5b5aa0
Commit b7b84fc730
5 geänderte Dateien mit 20 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -23,6 +23,7 @@
#include <QApplication>
#ifdef Q_OS_WINDOWS
#include <QSettings>
#include <QStandardPaths>
#endif
#include "mainwindow.hpp"
//#include "network/client.hpp"
@ -37,7 +38,7 @@ int main(int argc, char* argv[])
QApplication::setOrganizationName("Traintastic");
QApplication::setOrganizationDomain("traintastic.org");
QApplication::setApplicationName("traintastic-client");
QApplication::setApplicationVersion("0.1.0");
QApplication::setApplicationVersion("0.0.1");
#ifdef Q_OS_WINDOWS
QSettings::setDefaultFormat(QSettings::IniFormat);
@ -48,8 +49,12 @@ int main(int argc, char* argv[])
//Client client;
//Client::instance = &client;
Locale::instance = new Locale("/home/reinder/Dropbox/traintastic/traintastic/lang/en-us.txt");
#ifdef Q_OS_WINDOWS
QString localePath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "traintastic\\client\\lang", QStandardPaths::LocateDirectory);
#else
QString localePath = "/home/reinder/Dropbox/traintastic/traintastic/lang";
#endif
Locale::instance = new Locale(localePath.toStdString() + "/en-us.txt");
MainWindow mw;
mw.show();

Datei anzeigen

@ -1,7 +1,10 @@
; Inno Setup Script for Traintastic
#define Name "Traintastic"
#define Version "0.1.0"
#define Version "0.0.1"
#ifndef Codename
#define Codename "master"
#endif
#define Publisher "Reinder Feenstra"
#define URL "https://traintastic.org"
#define ServerExeName "traintastic-server.exe"
@ -11,7 +14,7 @@
AppId={{7E509202-257F-4859-B8FA-D87D636342BB}
AppName={#Name}
AppVersion={#Version}
AppVerName={#Name} v{#Version}
AppVerName={#Name} v{#Version} {#Codename}
AppPublisher={#Publisher}
AppPublisherURL={#URL}
AppSupportURL={#URL}
@ -21,7 +24,7 @@ DisableDirPage=yes
DisableProgramGroupPage=yes
LicenseFile=..\..\LICENSE
OutputDir=output
OutputBaseFilename=traintastic-setup-{#Version}
OutputBaseFilename=traintastic-setup-{#Version}-{#Codename}
SolidCompression=yes
WizardStyle=modern
ArchitecturesInstallIn64BitMode=x64

Datei anzeigen

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.9)
project(traintastic-server VERSION 0.1.0 DESCRIPTION "Traintastic server")
project(traintastic-server VERSION 0.0.1 DESCRIPTION "Traintastic server")
include(GNUInstallDirs)
add_executable(traintastic-server src/main.cpp src/options.hpp)

Datei anzeigen

@ -25,6 +25,7 @@
#include <boost/program_options.hpp>
#include <boost/preprocessor/stringize.hpp>
#include <codename.hpp>
struct Options
{
@ -66,7 +67,7 @@ struct Options
if(vm.count("version"))
{
std::cout << BOOST_PP_STRINGIZE(VERSION) << std::endl;
std::cout << BOOST_PP_STRINGIZE(VERSION) << " " << TRAINTASTIC_CODENAME << std::endl;
exit(EXIT_SUCCESS);
}

Datei anzeigen

@ -23,6 +23,8 @@
#ifndef TRAINTASTIC_SHARED_CODENAME_HPP
#define TRAINTASTIC_SHARED_CODENAME_HPP
#define TRAINTASTIC_CODENAME "Amsterdam CS"
#ifndef TRAINTASTIC_CODENAME
#define TRAINTASTIC_CODENAME "master"
#endif
#endif