How to secure application source code when using OTA? - blackberry

I want to distribute my application via OTA. I have PROJECT_NAME.jar file in the same directory with .cod and .jad files in my ftp server. So everyone can reach .jar file. What is the best way to secure this jar?

As Micheal B. wrote as comment, I don't need to put .jar file in OTA installation folder.

Related

Writing to a packaged app folder in Electron

I'm creating a portable Electron app that writes some files to the program folder. It works pretty well when I package it without the --asar option in Electron-packager, which leaves the resources folder with plain html + js files.
Now when I try to compile it with the --asar option, so that it packages the resources folder into one file, I can't access the program directory any more with the following code:
remote.app.getAppPath()
This now returns the path of the asar file, so I can't really write to the application folder any more. Is there any way around this?
No, you cannot modify the asar of a running Electron app. You should be saving your config outside of the asar path.

IT Hit WebDAV Sample App not running with tomcat

I have downloaded the sample app [ITHitWebDAVServerLibJava.tar.gz] trying to understand how this IT Hit Webdav work.
I started the demo app with Tomcat 8, running on JDK 1.8. From the tomcat console / log, it seems everything just fine, however when I access the main page, it doesn't list out the sample folders & files as how it suppose to (referring to the online demo).
screen : main page is render without listing out the folders & files
I downloaded the sample app and unzip it, without changing the folder structure of it. I have just edited the WEB-INF\web.xml so that it point to the correct trial license file. Please advise if I have missed out some configuration? Should I move out certain files from the WEB-INF folder? Is there any step by step setup guide this demo?
screen : unzipped sample app folder without changing the folder structure
Also, I have downloaded the trial version of AJAX library as well [ITHitWebDAVAJAXLibraryTrial.tar.gz], please advise how should I put this library into the main sample app? As in I should put this library files under which folder of the main sample app?
Please advise.
The default HTML page supplied with IT Hit WebDAV Server Library for Java sample servers use IT Hit WebDAV Ajax Library to list and browse WebDAV server content as well as to open documents for editing.
You can install IT Hit WebDAV Ajax Library from NPM using NPM command-line tool.
Install the Node.js, it installs NPM command-line tool.
Navigate to '\sample_folder\WEB-INF\wwwroot\' folder.
Execute:
npm install webdav.client
This will download IT Hit WebDAV Ajax Library library into the wwwroot folder.

Can you create an MSI with electron-packager?

I've just built an app with Electron.
Installing and running electron-packager . creates a folder my-app-win32-x64 with a bunch of assets and DLLs.
This isn't exactly something I can distribute to consumers.
What's the simplest way to generate a Windows installer for my electron executable?
It looks like according to their wiki you can. Follow the instructions here! https://github.com/electron/windows-installer
You may try electron-wix-msi it will help you to create a exe file.
it will basically ask you for your source file Path example D:\xyz\my-app-win32-x64
and will create a desired file at app source path.

where can i get MIME files for serving blackberry apps?

I had deployed my blackberry app and i have two files from deliverables\Web: those are .jad and .cod files. I have uploaded them to my web server.
I searched on more articles and I must install MIME files to web server so a user can download .jad file and setup the app on the device. I tried to solve this issue but i cannot .
So where can i get MIME files and how can I install on windows server?
To serve out BlackBerry apps from your own web server, you'll need to configure the MIME types for jad and cod files on your server.
For Apache's HTTP server, I use these MIME type mappings in my httpd.conf file:
AddType application/vnd.rim.cod cod
AddType text/vnd.sun.j2me.app-descriptor jad
To configure the .jad and .cod file MIME types in IIS, refer to this document. The idea is the same, though. You need to associate text/vnd.sun.j2me.app-descriptor with the .jad file extension (and so on, for the .cod file extension).

FTP zip upload and unpack

Hi Alsways uploading made web-sites , projects, I want to make such thing
make zip file,
upload one file
and then extract with default CHMOD for folders lets say 755 and for files 664
With Cpanel hostings its OK, I can do it via file manager... But for hostings without I can't.
Baybe someone can give a hint how...????
I use php unzipper. Here is quick tutorial on it.
Tutorial
The FTP protocol doesn't allow for such a thing.
Sometimes I keep a locked down directory where I drop compressed files and I have a little PHP script that unzips them by doing glob("*.zip") to get all the files, and executing the unzip on them.
My "solution" does require the ability to execute commands, but if you're in a more restricted environment you can use PHP's zip_ functions or even a PEAR package.

Resources