Suggesting/requesting that Calibre Portable include the standalone ebook-edit.exe and ebook-viewer.exe programs located in PortableApps\calibrePortable\App\Calibre
be included, therefore independently launchable from the PortableApps.com Platform, in the PortableApps\calibrePortable
directory.
To clarify, I mean that Calibre Portable ought to be packaged like OpenOffice Portable and LibreOffice Portable. ebook-edit.exe and ebook-viewer.exe are technically standalone applications that ebook developers and end-user modifiers alike benefit from using independently of the main calibrePortable.exe manager program. Because we don't have different import
versions of the in-development or currently modifying ebook project we're working on cluttering up our Calibre library. Which is otherwise, as currently packaged, the only way to launch and utilize these applications for development purposes and, for developers and modifiers, resulting in an avoidable mess of our Library to deal with.
I understand OpenOffice and LibreOffice are currently the only exceptions to apps featuring multiple executables, as described. I also understand that the PortableApps.com Launcher cannot, at least in of itself, be used to achieve this result. It is entirely unclear how to manually attempt it.
Failing the official release(s) of this packaged that way, I'd appreciate information on how to package, or modify the existing PAF of it, this software as described myself in PAF format. With as many details and/or examples as possible, if possible. Please and thank you.
_______________
Additionally, as an example of the sort of how-to information I'm seeking, I'd be curious to know if it could be as simply done as to make a copy of the existing Calibre Portable PAF, modifying the PortableApps\calibrePortable\App\AppInfo/appinfo.ini
and/or PortableApps\calibrePortable\App\AppInfo\Launcher/calibrePortable.ini
then using the PortableApps.com Launcher to get an .exe
of these two where they need to be, and then roll them into one, or if other methods to these means are required. And if so, what and how?
Notepad++ to create the following batch files:
@ECHO OFF
title Calibre Editor Launcher
call "App\Calibre\ebook-edit.exe"
exit
Save as
CalibreEditorPortable.bat
[driveletter]:\PortableApps\PortableApps\calibrePortable
directory.@ECHO OFF
title Calibre Viewer Launcher
call "App\Calibre\ebook-viewer.exe"
exit
Save as
CalibreViewerPortable.bat
to [driveletter]:\PortableApps\PortableApps\calibrePortable
directory._
Bat to Exe Converter to convert the previous batch files to executable files.
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable
directory.Select
CalibreViewerPortable.bat
Save as:
CalibreViewerPortable.exe
Under
Visibility
selectInvisible application
Under
Working directory
selectCurrent directory
Under
Temporary files
selectDelete on exit
Under
Encryption
leaveEncrypt the program
uncheckedUnder
Miscellaneous
leave all uncheckedUnder
Architecture
select64 Bit
Select
Compile
.Repeat for CalibreEditorPortable.bat
_
IconViewer
Install it (locally; it is not portable).
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable\App\Calibre
Select
ebook-viewer.exe
and Right-Click it.Select
Properties
.Select
Icons
tab.Select
256x256 (PNG)
Click on the save button icon.
Navigate to [driveletter]
:\PortableApps\Documents\Pictures
Save as:
ebook-viewer.ico
Repeat for ebook-edit.exe
_
Resource Hacker
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable
directory.Select
File
>Open...
>Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable\CalibreViewerPortable.exe
Select
Open
Select
Action
>Add an Image or other Binary Resource...
Select
File...
Navigate to [driveletter]
:\PortableApps\Documents\Pictures\ebook-viewer.ico
Select
open
.Name the icon
ebook-viewer
.Select
Add Resource
.Save.
Repeat for CalibreEditorPortable.exe
_
Notepad++
File
>Open
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable\App\AppInfo\appinfo.ini
Select
open
Default:
[Control]
BaseAppID=com.calibre-ebook.main-gui
Icons=1
Start=calibrePortable.exe
Changes:
[Control]
BaseAppID=com.calibre-ebook.main-gui
Icons=3
Start=calibrePortable.exe
Start1=calibrePortable.exe
Name1=Calibre Portable
Start2=CalibreEditorPortable.exe
Name2=Calibre Editor Portable
Start3=CalibreViewerPortable.exe
Name3=Calibre Viewer Portable
Save.
_
Add the new .ico files to AppInfo
Navigate to [driveletter]
:\PortableApps\Documents\Pictures
Select both
ebook-viewer.ico
andebook-edit.ico
Right-Click > Copy.
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable\App\AppInfo
Right-Click > Paste.
Rename
ebook-edit.ico
toappicon2.ico
Rename
ebook-viewer.ico
toappicon3.ico
Copy and paste the existing
appicon.ico
which becomesappicon - Copy.ico
Rename that copy to
appicon1.ico
_
Cleanup
Navigate to [driveletter]
:\PortableApps\PortableApps\calibrePortable
directory.Delete
CalibreEditorPortable.bat
andCalibreViewerPortable.bat
Delete
CalibreEditorPortable_original.exe
andCalibreViewerPortable_original.exe
Navigate to [driveletter]
:\PortableApps\Documents\Pictures
Delete
ebook-edit.ico
andebook-viewer.ico
_
That should be it.
Presumably, the appinfo.ini will reset to defaults with future calibre Portable updates. I don't know about the executable and icon files. I'd suggest keeping a copy of this modified version elsewhere to reapply these modifications to future calibre Portable releases without having to go through all of this from absolute scratch again (our executable files should continue to work providing the actual executables of them in the program do not change name or directory location).
Installable:
Get the installable from GitHub
Manually:
Get the manually applied assets from GitHub