More BOSS -> LOOT

Packaging scripts, masterlist converter and a few missed version number
changes.
This commit is contained in:
WrinklyNinja
2014-03-06 19:42:22 +00:00
parent 63ee9388ec
commit 933e84107c
5 changed files with 185 additions and 212 deletions
+1 -3
View File
@@ -1,7 +1,7 @@
/**
@mainpage
@author WrinklyNinja
@version 3.0.0
@version 0..0
@copyright The LOOT API is distributed under the GNU General Public License v3.0. For the full text of the license, see the "GNU GPL v3.txt" file included in the source archive.
@section intro_sec Introduction
@@ -14,7 +14,5 @@
@section credit_sec Credits
Thanks go to Lojack and myk002 for significant contributions during planning and beta testing, and to kaburke for beta testing of v2 of the API.
The LOOT API is written by WrinklyNinja in C/C++ and makes use of the <a href="http://code.google.com/p/yaml-cpp/">yaml-cpp</a> and <a href="http://github.com/WrinklyNinja/libloadorder/">libloadorder</a> libraries and some of the <a href="http://www.boost.org/">Boost</a> libraries. Copyright license information for all these may be found in the "licenses/Licenses.txt" file.
*/
+21 -20
View File
@@ -1,49 +1,50 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Creates an archive of a BOSS release, putting it in the 'build' folder.
# Creates an archive of a LOOT release, putting it in the 'build' folder.
# Files and folders that need to go in (relative to repository root):
#
# build/BOSS.exe
# resources/l10n/es/LC_MESSAGES/boss.mo
# build/LOOT.exe
# resources/l10n/es/LC_MESSAGES/loot.mo
# resources/l10n/es/LC_MESSAGES/wxstd.mo
# resources/l10n/ru/LC_MESSAGES/boss.mo
# resources/l10n/ru/LC_MESSAGES/loot.mo
# resources/l10n/ru/LC_MESSAGES/wxstd.mo
# resources/l10n/fr/LC_MESSAGES/boss.mo
# resources/l10n/fr/LC_MESSAGES/loot.mo
# resources/l10n/fr/LC_MESSAGES/wxstd.mo
# resources/l10n/zh/LC_MESSAGES/boss.mo
# resources/l10n/zh/LC_MESSAGES/loot.mo
# resources/l10n/zh/LC_MESSAGES/wxstd.mo
# resources/l10n/pl/LC_MESSAGES/boss.mo
# resources/l10n/pl/LC_MESSAGES/loot.mo
# resources/l10n/pl/LC_MESSAGES/wxstd.mo
# resources/polyfill.js
# resources/script.js
# resources/style.css
# docs/images
# docs/licenses
# docs/BOSS Metadata Syntax.html
# docs/BOSS Readme.html
# docs/LOOT Metadata Syntax.html
# docs/LOOT Readme.html
# BOSS
# LOOT
#
# A plugin load order optimiser for games that use the esp/esm plugin system.
# A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
# Fallout: New Vegas.
#
# Copyright (C) 2013-2014 WrinklyNinja
#
# This file is part of BOSS.
# This file is part of LOOT.
#
# BOSS is free software: you can redistribute
# LOOT is free software: you can redistribute
# it and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# BOSS is distributed in the hope that it will
# LOOT is distributed in the hope that it will
# be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with BOSS. If not, see
# along with LOOT. If not, see
# <http://www.gnu.org/licenses/>.
import sys
@@ -52,7 +53,7 @@ import shutil
import zipfile
temp_path = os.path.join('..', 'build', 'archive.tmp')
archive_name = 'BOSS Archive.zip'
archive_name = 'LOOT Archive.zip'
# Set archive name if alternative is given.
if (len(sys.argv) > 1):
@@ -63,11 +64,11 @@ if not os.path.exists(temp_path):
os.makedirs(temp_path)
# Now copy everything into the temporary folder.
shutil.copy( os.path.join('..', 'build', 'BOSS.exe'), temp_path )
shutil.copy( os.path.join('..', 'build', 'LOOT.exe'), temp_path )
for lang in ['es', 'ru', 'fr', 'zh_CN', 'pl', 'pt_BR']:
os.makedirs(os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES'))
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'boss.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'loot.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') )
shutil.copy( os.path.join('..', 'resources', 'l10n', lang, 'LC_MESSAGES', 'wxstd.mo'), os.path.join(temp_path, 'resources', 'l10n', lang, 'LC_MESSAGES') )
@@ -77,8 +78,8 @@ shutil.copy( os.path.join('..', 'resources', 'style.css'), os.path.join(temp_pat
shutil.copytree( os.path.join('..', 'docs', 'images'), os.path.join(temp_path, 'docs', 'images') )
shutil.copytree( os.path.join('..', 'docs', 'licenses'), os.path.join(temp_path, 'docs', 'licenses') )
shutil.copy( os.path.join('..', 'docs', 'BOSS Metadata Syntax.html'), os.path.join(temp_path, 'docs') )
shutil.copy( os.path.join('..', 'docs', 'BOSS Readme.html'), os.path.join(temp_path, 'docs') )
shutil.copy( os.path.join('..', 'docs', 'LOOT Metadata Syntax.html'), os.path.join(temp_path, 'docs') )
shutil.copy( os.path.join('..', 'docs', 'LOOT Readme.html'), os.path.join(temp_path, 'docs') )
# Now compress the temporary folder. (Creating a zip because I can't get pylzma to work...)
+12 -11
View File
@@ -1,23 +1,24 @@
/* BOSS
/* LOOT
A plugin load order optimiser for games that use the esp/esm plugin system.
A load order optimisation tool for Oblivion, Skyrim, Fallout 3 and
Fallout: New Vegas.
Copyright (C) 2013-2014 WrinklyNinja
This file is part of BOSS.
This file is part of LOOT.
BOSS is free software: you can redistribute
LOOT is free software: you can redistribute
it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
BOSS is distributed in the hope that it will
LOOT is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with BOSS. If not, see
along with LOOT. If not, see
<http://www.gnu.org/licenses/>.
*/
@@ -44,12 +45,12 @@ int main(int argc, char * argv[]) {
YAML::Emitter yout;
yout.SetIndent(2);
list<boss::Plugin> test_plugins;
list<boss::Message> globalMessages;
list<loot::Plugin> test_plugins;
list<loot::Message> globalMessages;
//Parse the v2 masterlist and output it as a YAML masterlist.
//Parse the BOSS masterlist and output it as a LOOT masterlist.
try {
Loadv2Masterlist(boost::filesystem::path(in_str), test_plugins, globalMessages);
LoadBOSSMasterlist(boost::filesystem::path(in_str), test_plugins, globalMessages);
} catch (exception& e) {
cout << "An error was encountered during masterlist parsing. Message: " << e.what() << endl;
return 1;
@@ -62,7 +63,7 @@ int main(int argc, char * argv[]) {
// Save output.
boost::filesystem::path out_path(out_str);
boss::ofstream out(out_path);
loot::ofstream out(out_path);
out << yout.c_str();
out.close();
+147 -174
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1,7 +1,7 @@
#include "wx/msw/wx.rc"
1 VERSIONINFO
FILEVERSION 3,0,0,0
PRODUCTVERSION 3,0,0,0
FILEVERSION 0,5,0,0
PRODUCTVERSION 0,5,0,0
FILEOS VOS__WINDOWS32
FILETYPE VFT_APP
BEGIN
@@ -9,9 +9,9 @@ BEGIN
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileVersion", "3.0.0"
VALUE "FileVersion", "0.5.0"
VALUE "LegalCopyright", "Copyright (C) 2013-2014 WrinklyNinja"
VALUE "ProductVersion", "3.0.0"
VALUE "ProductVersion", "0.5.0"
END
END
BLOCK "VarFileInfo"