diff --git a/OpenSQLManager.app.zip b/OpenSQLManager.app.zip new file mode 100755 index 0000000..e0e67a3 Binary files /dev/null and b/OpenSQLManager.app.zip differ diff --git a/build_osx_bundle.php b/build_osx_bundle.php index 9423ec9..6697e1a 100644 --- a/build_osx_bundle.php +++ b/build_osx_bundle.php @@ -1,9 +1,12 @@ @@ -135,25 +141,23 @@ function create_plist() CFBundleGetInfoString - App for managing databases. + App for managing databases. CFBundleExecutable - OpenSQLManager + OpenSQLManager CFBundleIdentifier - com.aviat4ion.OpenSQLManager + com.aviat4ion.OpenSQLManager CFBundleName - OpenSQLManager + OpenSQLManager CFBundleIconFile - OSM.icns + OpenSQLManager.icns CFBundleShortVersionString - {$version} + {$version} CFBundleInfoDictionaryVersion - 6.0 + 6.0 CFBundlePackageType - APPL - IFMajorVersion - {$major} - IFMinorVersion - {$minor} + APPL + LSMinimumSystemVersion + 10.6.0 XML; diff --git a/makefile b/makefile index d2ab3c8..641c023 100644 --- a/makefile +++ b/makefile @@ -7,5 +7,8 @@ all: OpenSQLManager.c ${CC} -O0 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} release: OpenSQLManager.c - ${CC} -O2 -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} - ${CC} -O2 -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} \ No newline at end of file + ${CC} -Os -o OpenSQLManager.o OpenSQLManager.c ${CFLAGS} + ${CC} -Os -o OpenSQLManager OpenSQLManager.o ${LDFLAGS} + +clean: + rm -f OpenSQLManager.o \ No newline at end of file diff --git a/resources/OSM.icns b/resources/OpenSQLManager.icns similarity index 100% rename from resources/OSM.icns rename to resources/OpenSQLManager.icns diff --git a/src/OpenSQLManager.php b/src/OpenSQLManager.php index 4e7cd1d..694cc36 100644 --- a/src/OpenSQLManager.php +++ b/src/OpenSQLManager.php @@ -32,10 +32,11 @@ ini_set('memory_limit', -1); // Set the current directory as the base for included files define('OSM_BASE_DIR', __DIR__.'/sys'); -define('OSM_RESOURCE_DIR', __DIR__.'/../Resources'); +define('OSM_RESOURCE_DIR', realpath(__DIR__.'/../Resources')); define('OSM_SETTINGS_DIR', __DIR__); define('OSM_PROGRAM_NAME', 'OpenSQLManager'); define('OSM_VERSION', '0.2.0pre'); +echo OSM_RESOURCE_DIR . "\n"; // --------------------------------------------------------------------------