Skip to content

Commit

Permalink
Update release 1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Aug 3, 2022
1 parent 2f50608 commit 0c17f4b
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
VER="continuous"
fi
echo "::set-output name=version::$VER"
main_build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
Expand Down Expand Up @@ -114,6 +113,10 @@ jobs:
if: (steps.cache-ff7tk.outputs.cache-hit != 'true')
run: ${{matrix.config.install_ff7tk}}

- name: Set FF7tk Path
if: runner.os == 'Linux'
run: echo /opt/ff7tk/lib | sudo tee /etc/ld.so.conf.d/ff7tk.conf

- name: Build Black_Chocobo
id: main_build
run: |
Expand Down Expand Up @@ -143,7 +146,9 @@ jobs:
- name: Upload
uses: actions/upload-artifact@v3
with:
path: ${{github.workspace}}/${{env.PackageGLOB}}
path: |
${{github.workspace}}/${{env.PackageGLOB}}
${{github.workspace}}/black*.deb
release_assets:
name: Release
Expand Down
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)

cmake_policy(SET CMP0010 NEW)

project( blackchocobo VERSION 1.12.0 DESCRIPTION "Final Fantasy 7 Save Editor")
project( blackchocobo VERSION 1.12.1 DESCRIPTION "Final Fantasy 7 Save Editor")
# Get the version from git if it's a git repository
IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git)
FIND_PACKAGE(Git)
Expand Down Expand Up @@ -71,7 +71,8 @@ find_package(Qt6 ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE COMPONENTS
Xml
)

find_package(ff7tk 0.82 REQUIRED NO_MODULE COMPONENTS
set(REQUIRED_FF7TK_VERSION 0.82.1)
find_package(ff7tk ${REQUIRED_FF7TK_VERSION} REQUIRED NO_MODULE COMPONENTS
ff7tk
ff7tkWidgets
)
Expand Down
9 changes: 9 additions & 0 deletions deploy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,20 @@ if(NOT CPACK_PACKAGE_VERSION)
endif()
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${CMAKE_PROJECT_DESCRIPTION})

set(CPACK_DEBIAN_PACKAGE_NAME "blackchocobo")
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libff7tk (>= ${REQUIRED_FF7TK_VERSION}) | libff7tk-all (>=${REQUIRED_FF7TK_VERSION})")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)

if(CMAKE_SYSTEM_NAME MATCHES "Linux")
#install generic files needed for linux package
set(CPACK_GENERATOR "TXZ")
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE)
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-linux-${ARCHITECTURE}")
if(EXISTS "/usr/bin/dpkg")
list(APPEND CPACK_GENERATOR "DEB")
endif()
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Black_Chocobo")
set(CPACK_NSIS_DISPLAY_NAME ${CMAKE_PACKAGE_NAME})
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
8 changes: 8 additions & 0 deletions lang/bchoco_re.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ p, li { white-space: pre-wrap; }
<source>Default to PC type, when saving unknown type</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Allow for an item cap 99 always</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Prepend drive to file dialog sidebars</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>BlackChocobo</name>
Expand Down
3 changes: 2 additions & 1 deletion src/dialogs/bcdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ QString BCDialog::getSaveFileName(QWidget *parent, const QString &region, const
dialog->setDefaultSuffix(QStringLiteral(".vgs"));
name = QStringLiteral("vgsCard");
}
name.append(QStringLiteral("%1").arg(dialog->defaultSuffix()));
if(!dialog->defaultSuffix().isEmpty())
name.append(QStringLiteral(".%1").arg(dialog->defaultSuffix()));
dialog->selectFile(name);
});
}
Expand Down

0 comments on commit 0c17f4b

Please sign in to comment.