Claudio Valerio 13 years ago
parent 817168d96c
commit 87ef37b751
  1. 2
      Open-Sankore.packproj
  2. 2
      Sankore_3.1.pro
  3. 15
      release.macx.sh
  4. 2
      resources/macx/Info.plist
  5. 6
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Info.plist
  6. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/Dutch.lproj/InfoPlist.strings
  7. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/English.lproj/InfoPlist.strings
  8. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/French.lproj/InfoPlist.strings
  9. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/German.lproj/InfoPlist.strings
  10. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/Italian.lproj/InfoPlist.strings
  11. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/Japanese.lproj/InfoPlist.strings
  12. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/Spanish.lproj/InfoPlist.strings
  13. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/da.lproj/InfoPlist.strings
  14. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/fi.lproj/InfoPlist.strings
  15. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/ko.lproj/InfoPlist.strings
  16. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/no.lproj/InfoPlist.strings
  17. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/pt.lproj/InfoPlist.strings
  18. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/ru.lproj/InfoPlist.strings
  19. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/sv.lproj/InfoPlist.strings
  20. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/zh_CN.lproj/InfoPlist.strings
  21. BIN
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/Resources/zh_TW.lproj/InfoPlist.strings
  22. 2
      resources/macx/Save PDF to Open-Sankore.workflow/Contents/document.wflow
  23. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/Spanish.lproj/InfoPlist.strings
  24. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/fi.lproj/InfoPlist.strings
  25. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/no.lproj/InfoPlist.strings
  26. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/pt.lproj/InfoPlist.strings
  27. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/sv.lproj/InfoPlist.strings
  28. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/zh_CN.lproj/InfoPlist.strings
  29. BIN
      resources/macx/Save PDF to Uniboard.workflow/Contents/Resources/zh_TW.lproj/InfoPlist.strings
  30. BIN
      resources/macx/UniboardDmgBackground.png
  31. 9
      src/frameworks/UBPlatformUtils_mac.mm

@ -433,6 +433,8 @@
<dict>
<key>Path</key>
<string></string>
<key>Path Type</key>
<integer>2</integer>
<key>Status</key>
<false/>
</dict>

@ -166,7 +166,7 @@ macx {
UB_THIRDPARTY_INTERACTIVE.path = "$$RESOURCES_DIR/library/interactive"
UB_MACX_ICNS.files = $$files(resources/macx/*.icns)
UB_MACX_ICNS.path = "$$RESOURCES_DIR"
UB_MACX_EXTRAS.files = "resources/macx/Save PDF to Uniboard.workflow"
UB_MACX_EXTRAS.files = "resources/macx/Save PDF to Open-Sankore.workflow"
UB_MACX_EXTRAS.path = "$$RESOURCES_DIR"
UB_I18N.path = $$DESTDIR/i18n # not used

@ -99,9 +99,9 @@ else
fi
fi
#if [ $? != 0 ]; then
# abort "compilation failed"
#fi
if [ $? != 0 ]; then
abort "compilation failed"
fi
NAME="Open-Sankore"
@ -135,7 +135,10 @@ $DSYMUTIL "$APP/Contents/MacOS/Open-Sankore" -o "$DSYM"
$STRIP -S "$APP/Contents/MacOS/Open-Sankore"
if [ "$1" == "pkg" ]; then
ICEBERG_CONFIG_FILE="Open-Sankore.packproj"
BASE_ICEBERG_CONFIG_FILE="Open-Sankore.packproj"
#copy the standard file for working with
ICEBERG_CONFIG_FILE="Open-Sankore-working.packproj"
cp -r $BASE_ICEBERG_CONFIG_FILE $ICEBERG_CONFIG_FILE
# set version information
$PLISTBUDDY -c "Set :Hierarchy:Attributes:Settings:Description:International:IFPkgDescriptionVersion $VERSION" "$ICEBERG_CONFIG_FILE"
$PLISTBUDDY -c "Set :Hierarchy:Attributes:Settings:Display\ Information:CFBundleShortVersionString $VERSION" "$ICEBERG_CONFIG_FILE"
@ -149,6 +152,10 @@ if [ "$1" == "pkg" ]; then
mkdir -p "${PRODUCT_DIR}"
fi
$ICEBERG $ICEBERG_CONFIG_FILE
#clean up mess
rm -rf $ICEBERG_CONFIG_FILE
exit 0
fi

@ -55,7 +55,7 @@
<key>CFBundleIconFile</key>
<string>Uniboard.icns</string>
<key>CFBundleIdentifier</key>
<string>com.sankore.open-sankore</string>
<string>org.eduxia.open-sankore</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>

@ -3,16 +3,16 @@
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.mnemis.pdfworkflow.savepdftouniboard</string>
<string>com.eduxia.pdfworkflow.savepdftoopensankore</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Save PDF to Uniboard</string>
<string>Save PDF to Open-Sankoré</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>UniB</string>
<string>EduX</string>
</dict>
</plist>

@ -55,7 +55,7 @@
<key>ActionParameters</key>
<dict>
<key>COMMAND_STRING</key>
<string>open -b com.mnemis.Uniboard "$1"</string>
<string>open -b org.eduxia.open-sankore "$1"</string>
<key>CheckedForUserDefaultShell</key>
<true/>
<key>inputMethod</key>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

@ -48,8 +48,8 @@ void UBPlatformUtils::init()
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSString *currentPath = [[NSBundle mainBundle] pathForResource:@"Save PDF to Sankore" ofType:@"workflow"];
NSString *installedPath = [[[@"~/Library/PDF Services" stringByExpandingTildeInPath] stringByAppendingPathComponent:@"Save PDF to Sankore"] stringByAppendingPathExtension:@"workflow"];
NSString *currentPath = [[NSBundle mainBundle] pathForResource:@"Save PDF to Open-Sankore" ofType:@"workflow"];
NSString *installedPath = [[[@"~/Library/PDF Services" stringByExpandingTildeInPath] stringByAppendingPathComponent:@"Save PDF to Open-Sankore"] stringByAppendingPathExtension:@"workflow"];
NSString *currentVersion = bundleShortVersion([NSBundle bundleWithPath:currentPath]);
NSString *installedVersion = bundleShortVersion([NSBundle bundleWithPath:installedPath]);
@ -57,16 +57,17 @@ void UBPlatformUtils::init()
{
NSFileManager *fileManager = [NSFileManager defaultManager];
[fileManager removeFileAtPath:installedPath handler:nil];
// removing the old version of the script named Save PDF to Uniboard
[fileManager removeFileAtPath:[[[@"~/Library/PDF Services" stringByExpandingTildeInPath] stringByAppendingPathComponent:@"Save PDF to Uniboard"] stringByAppendingPathExtension:@"workflow"] handler:nil];
[fileManager createDirectoryAtPath:[installedPath stringByDeletingLastPathComponent] attributes:nil];
BOOL copyOK = [fileManager copyPath:currentPath toPath:installedPath handler:nil];
if (!copyOK)
{
qWarning("Could not install the 'Save PDF to Sankore' workflow");
qWarning("Could not install the 'Save PDF to Open-Sankoré workflow");
}
}
[pool drain];
}

Loading…
Cancel
Save