This commit is contained in:
2019-10-08 01:54:04 -07:00
parent d255172a62
commit d86b4852f9
9 changed files with 14 additions and 15 deletions

View File

@@ -1,9 +1,11 @@
# Changelog # Changelog
All notable changes to this project will be documented in this file. Older changes are summarized on individual commits. All notable changes to this project will be documented in this file. Older changes are summarized on individual commits.
## [0.7.13.1]
- Thumb creation bugfix
## [0.7.13.0] ## [0.7.13.0]
- Rewrites to diskutil code - Rewrites to diskutil code
- Rewrites to mdutil code - Rewrites to mdutil code
- Restructure paths - Restructure paths
- Remove bundled Imagemagick
- Fixed a sort order bug in rtc.php - Fixed a sort order bug in rtc.php

Binary file not shown.

View File

@@ -17,6 +17,7 @@ $bin_qltool = __DIR__."/bin/qltool";
$bin_sox = __DIR__."/bin/sox"; $bin_sox = __DIR__."/bin/sox";
$bin_pngquant = __DIR__."/bin/pngquant"; $bin_pngquant = __DIR__."/bin/pngquant";
$bin_parallel = __DIR__."/bin/parallel"; $bin_parallel = __DIR__."/bin/parallel";
$bin_convert = __DIR__."/bin/convert";
// System tools // System tools
$bin_php = "php"; $bin_php = "php";
@@ -24,12 +25,10 @@ $bin_qlmanage = "qlmanage";
$bin_sips = "sips"; $bin_sips = "sips";
// External tools // External tools
$bin_convert = "/opt/local/bin/convert";
$bin_vips = "/opt/local/bin/vipsthumbnail"; $bin_vips = "/opt/local/bin/vipsthumbnail";
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
if (empty(shell_exec("which ".$bin_convert))) { echo "Binary not found: ".$bin_convert."\n"; }
if (empty(shell_exec("which ".$bin_vips))) { echo "Binary not found: ".$bin_vips."\n"; } if (empty(shell_exec("which ".$bin_vips))) { echo "Binary not found: ".$bin_vips."\n"; }
if (empty($argv[2])) { echo "Nothing dragged"; die; } if (empty($argv[2])) { echo "Nothing dragged"; die; }

Binary file not shown.

View File

@@ -68,7 +68,7 @@ if (!is_dir($tmpdir)) { mkdir($tmpdir,0777,true); }
$stamp = date("Y-m-d_H-i-s", $mytime); $stamp = date("Y-m-d_H-i-s", $mytime);
if (!isset($argv[1])) { echo "No input"; die; } if (!isset($argv[1]) || $argv[1] == "") { echo "No input"; die; }
$zpath = realpath(@$argv[1]); $zpath = realpath(@$argv[1]);
if ($p['bdest']) { $bdest = realpath($p['bdest']); } else { $bdest = "/Users/".get_current_user()."/Documents/Yuba/"; } if ($p['bdest']) { $bdest = realpath($p['bdest']); } else { $bdest = "/Users/".get_current_user()."/Documents/Yuba/"; }
if (!is_dir($bdest)) { if (!mkdir($bdest)) { echo "Error creating directory: ".$bdest; die; } } if (!is_dir($bdest)) { if (!mkdir($bdest)) { echo "Error creating directory: ".$bdest; die; } }
@@ -569,10 +569,10 @@ if ($p['thumbs']) {
$pathname = $array[1]; $pathname = $array[1];
$tcmd = $bin_php." ".$helper." thumbs ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next(); $tcmd = $bin_php." ".$helper." thumbs ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next();
msg($tcmd); msg($tcmd);
$line[] = $tcmd; $tline[] = $tcmd;
} }
file_put_contents($batchfile,implode("\n", $line)); file_put_contents($batchfile,implode("\n", $tline));
echo ProgressBar::finish($wopt_clear); echo ProgressBar::finish($wopt_clear);
echo ProgressBar::start($passed_file,"Running thumb batch (".stepString().")"); echo ProgressBar::start($passed_file,"Running thumb batch (".stepString().")");
@@ -600,10 +600,10 @@ if ($p['icons']) {
$pathname = $array[1]; $pathname = $array[1];
$icmd = $bin_php." ".$helper." icons ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next(); $icmd = $bin_php." ".$helper." icons ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next();
msg($icmd); msg($icmd);
$line[] = $icmd; $iline[] = $icmd;
} }
file_put_contents($batchfile,implode("\n", $line)); file_put_contents($batchfile,implode("\n", $iline));
echo ProgressBar::finish($wopt_clear); echo ProgressBar::finish($wopt_clear);
echo ProgressBar::start($passed_file,"Running icon batch (".stepString().")"); echo ProgressBar::start($passed_file,"Running icon batch (".stepString().")");

View File

@@ -37,7 +37,7 @@
<key>InterfaceType</key> <key>InterfaceType</key>
<string>Progress Bar</string> <string>Progress Bar</string>
<key>InterpreterPath</key> <key>InterpreterPath</key>
<string>/usr/bin/php</string> <string>/bin/bash</string>
<key>Name</key> <key>Name</key>
<string>Yuba</string> <string>Yuba</string>
<key>NibPath</key> <key>NibPath</key>

View File

@@ -1 +1 @@
0.7.13.0 0.7.13.1

View File

@@ -13,6 +13,7 @@ $bin_qltool = __DIR__."/bin/qltool";
$bin_sox = __DIR__."/bin/sox"; $bin_sox = __DIR__."/bin/sox";
$bin_pngcrush = __DIR__."/bin/pngcrush"; $bin_pngcrush = __DIR__."/bin/pngcrush";
$bin_parallel = __DIR__."/bin/parallel"; $bin_parallel = __DIR__."/bin/parallel";
$bin_convert = __DIR__."/bin/convert";
// System tools // System tools
$bin_php = "php"; $bin_php = "php";
@@ -20,7 +21,6 @@ $bin_qlmanage = "qlmanage";
$bin_sips = "sips"; $bin_sips = "sips";
// External tools // External tools
$bin_convert = "/opt/local/bin/convert";
$bin_vips = "/opt/local/bin/vipsthumbnail"; $bin_vips = "/opt/local/bin/vipsthumbnail";
// Treat these directories as files // Treat these directories as files

6
script
View File

@@ -1,5 +1,3 @@
<?php #!/bin/bash
require(__DIR__."/Yuba.php"); /usr/bin/php Yuba.php "$1"
?>