If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
List of issues#824 Add OS X Application download
Author: Tyilo
Date created:
Type: feature
Visibility: Everybody
Assigned to: JPEXS
Labels: ExternalLinkInstallationMac
State: returned
A minimal example of how I packaged FFDec into an OS X application is to create the
following directory structure:
FFDec.app/
Contents/
MacOS/
FFDec
Resources/
ffdec.bat
ffdec.exe
ffdec.jar
ffdec.sh
lib/
...
Where the "Resources" directory just contains the files from the zip download.
The only new file is the "FFDec" file inside "MacOS" which is executable (chmod +x) and
have the following contents:
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../Resources
./ffdec.sh
After setting this up you can just double-click FFDec.app on OS X to launch FFDec.
Hi, thanks for suggestion.
Is this file correct? (see attachment)
ffdec_0.0.0_private_4551774.app (8,752 KiB)
The only problem with this is that the "ffdec.sh" file included with FFDec uses Windows
line endings instead of unix ones, which OS X doesn't like.
You can change the line endings of "ffdec.sh" with dos2unix to make it work. I have
uploaded a converted version of ffdec.sh and the working application containing the fixed
"ffdec.sh".
Another thing that normal OS X applications have is a "Info.plist" file inside the
"Contents" directory containing information about the application.
The biggest improvement would probably be to add an icon (.icns file) to the application.
If you have a link to an image/icon file of the FFDec icon, I could convert it to .icns
format and create the required "Info.plist".
ffdec.sh (3 KiB)fixed_FFDec_app.zip (8,748 KiB)
Ok here is the app included with the Apple icon file and the Info.plist.
You will probably want to modify the Info.plist file, when you release a new version of
FFDec with the version number of the app.
(See CFBundleShortVersionString and CFBundleVersion xml keys in the file)
Note that the "Icon.icns" file have to be in the "Resources" directory.
FFDec.zip (9,407 KiB)
Thanks,
please try nightly 439, you should see Mac OSX download there.
State: opened→upgraded
Looks good to me and works. I have made a small change to ffdec.sh so that the FFDec icon
is also shown in the Dock, when the application is running.
I have attached the modified ffdec.sh and a new file icon.png, which is needed for the
Dock icon. The icon.png file should just be in the Resources directory.
Hi,
your changes were implemented few nightlys ago and are in stable too.
But there's more...
I worked hard to make installer too.
Please try the installer, it is the Pkg package (see nightly build download),
I hope you like it :-). It should work, I guess.
The pkg installer doesn't work.
On OS X you have 3 primary installation packagings:
1) app inside zip
2) pkg installer
3) app inside dmg (also including a symlink to /Applications)
I would prefer either the 1st or 3rd option as using a pkg only makes sense, when you need
to install additional files outside of the /Applications directory.
Please try Pkg of nightly 499 or later and check it, it could be better. Thanks!
hmm, I don't need files outside, you're right...
I'll try to investigate how the DMG images work and how it can be done with java...
I already made Java port of XAR archiver and BOM utils for the Pkg, so DMG should not be
so big deal:-)
The pkg still doesn't work. The Installer app just opens without showing a window.
Here is the "Installer log":
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: LSExceptions [0x7f84eb5115c0]
loaded
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: @(#)PROGRAM:Install
PROJECT:Install-920
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: @(#)PROGRAM:Installer
PROJECT:Installer-815
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Hardware: MacBookPro9,2 @ 2.50
GHz (x 4), 16384 MB RAM
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Running OS Build: Mac OS X
10.10.3 (14D136)
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
TMPDIR=/var/folders/db/kt60mzx93p110r61jzjbf3nw0000gn/T/
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: HOME=/Users/Tyilo
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: SHELL=/usr/local/bin/fish
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.VUdW0VUxWH/Listeners
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.hMBQ2oeZRi/Render
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
PATH=/usr/bin:/bin:/usr/sbin:/sbin
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
DISPLAY=/private/tmp/com.apple.launchd.1FRifjax4t/org.macosforge.xquartz:0
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: LOGNAME=Tyilo
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env:
XPC_SERVICE_NAME=com.apple.xpc.launchd.oneshot.0x1000000d.Installer
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: COMMAND_MODE=unix2003
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: USER=Tyilo
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: SECURITYSESSIONID=186a5
May 11 15:20:41 Asgers-MacBook-Pro.local Installer[9408]: Env: XPC_FLAGS=0x0
May 11 15:20:52 Asgers-MacBook-Pro.local Installer[9408]: LSExceptions [0x7f84eb5115c0]
unloaded
I am sorry:-(.
Please, could you try nightly 500 again?
Still doesn't work for me.
I know it may become anoying... but could you please try nightly 505 or late?
If still does not work, please try following one. My friend with MacOSx said this one
works for him:
https://test.jindrapetrik.cz/ffdec_0.0.0_private_0ec9913.pkg
Nightly 507 still didn't work.
I could go through the installation of your friend's version, however at the last screen I
get this: http://i.imgur.com/0X7zrva.png
Here's the log for your friend's pkg:
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: LSExceptions [0x7fc5c87124c0]
loaded
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: @(#)PROGRAM:Install
PROJECT:Install-920
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: @(#)PROGRAM:Installer
PROJECT:Installer-815
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Hardware: MacBookPro9,2 @ 2.50
GHz (x 4), 16384 MB RAM
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Running OS Build: Mac OS X
10.10.3 (14D136)
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
TMPDIR=/var/folders/db/kt60mzx93p110r61jzjbf3nw0000gn/T/
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: HOME=/Users/Tyilo
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: SHELL=/usr/local/bin/fish
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.CzbYGupff2/Listeners
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.EllajcPrhs/Render
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
DISPLAY=/private/tmp/com.apple.launchd.awZGilcW2A/org.macosforge.xquartz:0
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
PATH=/usr/bin:/bin:/usr/sbin:/sbin
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: LOGNAME=Tyilo
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env:
XPC_SERVICE_NAME=com.apple.xpc.launchd.oneshot.0x10000005.Installer
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: COMMAND_MODE=unix2003
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: USER=Tyilo
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Env: XPC_FLAGS=0x0
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: JPEXS Free Flash Decompiler
0.0.0_private_0ec9913 Installation Log
May 12 10:24:00 Asgers-MacBook-Pro.local Installer[3270]: Opened from:
/Users/Tyilo/Downloads/ffdec_0.0.0_private_0ec9913.pkg
May 12 10:24:01 Asgers-MacBook-Pro.local Installer[3270]: Product archive
/Users/Tyilo/Downloads/ffdec_0.0.0_private_0ec9913.pkg trustLevel=100
May 12 10:24:05 Asgers-MacBook-Pro.local Installer[3270]: InstallerStatusNotifications
plugin loaded
May 12 10:24:11 Asgers-MacBook-Pro.local Installer[3270]: LSExceptions [0x7fc5c87124c0]
unloaded
May 12 10:24:19 Asgers-MacBook-Pro.local runner[3275]: Administrator authorization
granted.
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]:
================================================================================
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: User picked Standard Install
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Choices selected for
installation:
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Install: "JPEXS Free Flash
Decompiler 0.0.0_private_0ec9913"
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Install: "base"
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]:
ffdec_0.0.0_private_0ec9913.pkg#base.pkg : com.jpexs.decompiler.flash.base.pkg :
0.0.0_private_0ec9913
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]:
================================================================================
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: It took 0.00 seconds to
summarize the package selections.
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: -[IFDInstallController(Private)
_buildInstallPlan]: location = file://localhost
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: -[IFDInstallController(Private)
_buildInstallPlan]:
file://localhost/Users/Tyilo/Downloads/ffdec_0.0.0_private_0ec9913.pkg#base.pkg
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Set authorization level to root
for session
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Will use PK session
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Starting installation:
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Configuring volume "HD"
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Preparing disk for local booted
install.
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Free space on "HD": 109,99 GB
(109992808448 bytes).
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Create temporary directory
"/var/folders/db/kt60mzx93p110r61jzjbf3nw0000gn/T//Install.3270H62Gmv"
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: IFPKInstallElement (1 packages)
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: Using authorization level of
root for IFPKInstallElement
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: installd: Starting
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: installd: uid=0, euid=0
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: Adding client
PKInstallDaemonClient pid=3270, uid=501
(/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
May 12 10:24:19 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: Enqueuing install
with framework-specified quality of service (utility)
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: ----- Begin install
-----
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit:
request=PKInstallRequest <1 packages, destination=/>
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: packages=(
"PKLeopardPackage
<file://localhost/Users/Tyilo/Downloads/ffdec_0.0.0_private_0ec9913.pkg#base.pkg>"
)
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: Skipping component
"com.jpexs.decompiler.flash" (*-0.0.0-*-*) because the version 4.1.1-4.1.1-*-* is already
installed at /Applications/FFDec.app.
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: Extracting
file://localhost/Users/Tyilo/Downloads/ffdec_0.0.0_private_0ec9913.pkg#base.pkg
(destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/395B
6227-29D9-41BA-A843-21ED82DA674D.activeSandbox/Root, uid=0)
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: prevent user idle
system sleep
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: suspending backupd
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: Using trashcan path
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/395B6227-29D9-41BA-
A843-21ED82DA674D.sandboxTrash for sandbox
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/395B6227-29D9-41B
A-A843-21ED82DA674D.activeSandbox
May 12 10:24:19 Asgers-MacBook-Pro.local installd[3280]: PackageKit: Shoving
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/395B6227-29D9-41B
A-A843-21ED82DA674D.activeSandbox/Root (0 items) to /
May 12 10:24:19 Asgers-MacBook-Pro.local install_monitor[3281]: Temporarily excluding:
/Applications, /Library, /System, /bin, /private, /sbin, /usr
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: Service connection
interrupted.
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: XPC error in
__35-[_PKInstallClientConnection proxy]_block_invoke (Error Domain=NSCocoaErrorDomain
Code=4097 "Couldn’t communicate with a helper application." (connection to service named
com.apple.installd) UserInfo=0x7fc5ca993280 {NSDebugDescription=connection to service
named com.apple.installd})
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: XPC error in
__43-[_PKInstallClientConnection blockingProxy]_block_invoke (Error
Domain=NSCocoaErrorDomain Code=4097 "Couldn’t communicate with a helper application."
(connection to service named com.apple.installd) UserInfo=0x7fc5ca993280
{NSDebugDescription=connection to service named com.apple.installd})
May 12 10:24:25 Asgers-MacBook-Pro.local install_monitor[3281]: Caught installd exit
May 12 10:24:25 Asgers-MacBook-Pro.local install_monitor[3281]: Re-included:
/Applications, /Library, /System, /bin, /private, /sbin, /usr
May 12 10:24:25 Asgers-MacBook-Pro.local installd[3283]: installd: Starting
May 12 10:24:25 Asgers-MacBook-Pro.local installd[3283]: installd: uid=0, euid=0
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: XPC error in
__43-[_PKInstallClientConnection blockingProxy]_block_invoke (Error
Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application."
(The connection to service named com.apple.installd was invalidated.)
UserInfo=0x7fc5ca973ac0 {NSDebugDescription=The connection to service named
com.apple.installd was invalidated.})
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: PackageKit: Service connection
invalidated!
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: install:didFailWithError:Error
Domain=PKInstallErrorDomain Code=200 "There was a problem with the system installer tool."
UserInfo=0x7fc5c877d9a0 {NSLocalizedDescription=There was a problem with the system
installer tool.}
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: Install failed: The Installer
encountered an error that caused the installation to fail. Contact the software
manufacturer for assistance.
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: IFDInstallController C8473FF0
state = 8
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: Displaying 'Install Failed' UI.
May 12 10:24:25 Asgers-MacBook-Pro.local Installer[3270]: 'Install Failed' UI displayed
message:'The Installer encountered an error that caused the installation to fail. Contact
the software manufacturer for assistance.'.
State: upgraded→returned