packaging

how to include a directory in the package debuild

陌路散爱 提交于 2019-12-05 08:42:43
a Simple Debian package would be created in following steps, the following steps would be tutorial for beginners consider i have a file lets say test.sh which would just print test on the screen #!/bin/sh set -e echo "this is sample debian package created " >&2 What should be the output after installing the debian package? A)I want to place the above file which i named as test.sh in /home/bla/Desktop/ after installing the package using "dpkg -i test-1.0.deb" In order to achieve above process follow the below mentioned steps as it mkdir test-1.0 cd test-1.0 #in order to place test.sh in /home

How do I bundle a JRE in my JAR, so that it can run on systems without Java?

﹥>﹥吖頭↗ 提交于 2019-12-05 08:27:41
I want to bundle a JRE inside my executable JAR, so that the exe can run on any system. I have tried Launch4j , but that approach requires me to ship both the JRE and the exe. As per my requirements, I should not use an installer to ship, nor extract/install the JRE on the client machine. How do I put a JRE inside a JAR and make use of it? You cannot put a JRE inside a JAR file. (Well you can ... but it won't help.) What you need to do is build and distribute an installer. The recommended way to create an installer is to use a commercial or open-source installer generator. (Google will help

SAPUI5 / OpenUI5: Packaging

我们两清 提交于 2019-12-05 06:40:50
问题 I am using OpenUI5 in my hybrid (Cordova WebView) approach. When downloading the latest OpenUI5 version I end up with a huge bunch of files and I have no clue which ones are really necessary for my purpose. It seems as if there are no precompiled files that contain everything needed for a mobile/hybrid/whatever approach. How have you guys solved this? Thanks and happy new year!!! 回答1: Have you noticed the "UI5 Runtime Mobile" package at http://openui5.org/download.html#versionList ? This is

OutOfMemoryException when creating large ZIP file using System.IO.Packaging

有些话、适合烂在心里 提交于 2019-12-05 06:36:32
I am trying to debug an OutOfMemoryException that occurs when creating a fairly large ZIP file using System.IO.Packaging.ZipPackage . The code is iterating through a large list of objects, doing the following for each object. Serializing the object data to a temporary file. Creating a PackagePart for the file. Copy from a source System.IO.Stream to another: Source stream: FileStream Target stream: PackagePart::GetStream() => MS.Internal.IO.Zip.ZipIOModeEnforcingStream Finally it calls Package::Close() which saves the file. The problem I am having is that for a particularly large list of

Package that downloads data from the internet during installation

怎甘沉沦 提交于 2019-12-05 05:13:00
Is anyone aware of a package that downloads a dataset from the internet during the installation process and then prepares and saves it so that it is available when loading the package using library(packageName) ? Are there any drawbacks in this approach (besides the obvious one that package installation will fail if the data source is unavailable or the data format has changed)? EDIT : Some background. The data is three tab-separated files in a ZIP archive, owned by federal statistics and generally freely accessible. I have R code which downloads, extracts and prepares the data, in the end

Package PyGObject Python 3 program with pynsist?

喜夏-厌秋 提交于 2019-12-05 02:28:02
问题 I would like to package a Python3-PyGObject program with pynsist. The repository has an example for PyGTK and it made me think that it shouldn't be too hard to change the example. The example can be found here: https://github.com/takluyver/pynsist/tree/master/examples/pygtk In this file (https://github.com/takluyver/pynsist/blob/master/examples/pygtk/grab_files.sh) I think one just has to grab the files targeting GTK 3 (http://www.gtk.org/download/win32.php): wget -O gtkbundle.zip http:/

Package installation of Keras in Anaconda?

百般思念 提交于 2019-12-04 21:34:24
Python 3.5, I am trying to find command to install a Keras Deep Learning package for Anaconda. The command conda install -c keras does not work, can anyone answer Why it doesn't work? The specific answer to the question is that the -c option to the conda command specifies a channel to search for the package or packages you want to install. -c CHANNEL, --channel CHANNEL Additional channel to search for packages. These are URLs searched in the order they are given (including file:// for local directories). Then, the defaults or channels from .condarc are searched (unless --override-channels is

How to create a single application from multiple Android projects

穿精又带淫゛_ 提交于 2019-12-04 17:25:45
I am developing a project where i have to create several Android projects but at the end i have to package all the projects in to one single application.is there anyway to do it? Thanks !!! Create Multiple APKs, and remove the Launcher category from the activities that you don't need to show up in the apps list. For one of the project, there would be a launcher. But, the problem with this approach is that, users will have to install all the apks or, you can make your main apk handle this for you by saying, "Hey, if you want this feature, go to the market and download this app" and direct them

How to package Factories in Java

馋奶兔 提交于 2019-12-04 16:51:14
问题 I was wondering how to package the factories that I have in my application. Should the Factory be in the same package as the classes that use it, in the same package as the objects it creates or in its own package? Thanks for your time and feedback 回答1: Usually factories are in the same package as the objects they create; after all their purpose is to create those objects. Usually they are not in a separate package (there is no reason for that). Also having the factory be in the same package

How can I make setuptools (or distribute) install a package from the local file system

只谈情不闲聊 提交于 2019-12-04 15:39:15
问题 Is it possible to specify (editable) source dependencies in setup.py that are known to reside on the local file system? Consider the following directory structure, all of which lives in a single VCS repository: projects utils setup.py ... app1 setup.py ... # app1 files depend on ../utils app2 setup.py ... # app2 files depend on ../utils Given the following commands: cd projects mkvirtualenv app1 pip install -e app1 I'd like to have all the dependencies for app1 installed, including "utils",