packaging

Packaging a perl app so that it will work outside of perl's default prefix

拥有回忆 提交于 2019-12-09 19:22:38
问题 I'm using Module::Build (although I'm flexible on build environments) to package up some perl software I'm writing for internal use where I work. It includes a handful of scripts, and some helper modules. My plan is to make it so you can specify a prefix of whatever you want (ie. something outside of perl's default @INC ) during the build process and the built scripts should still be able to find their helper modules without any problems. I want to do this because I want to distribute this

How to build an MSDeploy package for an ASP.Net 5 app that targets .Net Core

自闭症网瘾萝莉.ら 提交于 2019-12-09 08:20:34
问题 I'm trying to configure Visual Studio Online to continuously deploy my ASPNET 5 application to an Azure webapp as described in this tutorial from the Team Foundation Build docs: https://msdn.microsoft.com/Library/vs/alm/Build/azure/deploy-aspnet5 I have followed all the steps and everything is working great. By default this script deploys a build of my app that targets the full .Net 4.5.1 DNX so I decided to try and modify it to deploy for .Net Core. The build script creates its deployment

Bundler: `bundle package` with a :git source

╄→гoц情女王★ 提交于 2019-12-09 05:23:14
问题 I'm trying to get my app to package my gems before deployment (to heroku) One of my gems in my Gemfile is a custom gem that I've written and I'm using the :git option of bundler to use the specific tag of my interest as such: gem "my_gem", :git => "git@github.com:my_username/my_gem.git", :tag => "v0.1.0" When I run bundle package however, this gem is not included into my vendor/cache directory. Is this a known issue, namely, that Bundler does not package gems that use the git source rather

BlackBerry app larger than 14mb

大城市里の小女人 提交于 2019-12-09 03:46:29
问题 My BlackBerry app includes some html files, images, jss files. These files are gzip compressed, but the size of this gzip is 18mb. I know that the maximum size of a BlackBerry smartphone application is about 14 mb. How can I work around this limit? I have found this support forums page: The file size limit for wireless downloads It suggest use libraries, someone have any experience with this? 回答1: Can you download resources from a website as they are needed? You could always cache locally

Providing configuration for existing plugins in maven lifecycle mapping

不羁的心 提交于 2019-12-09 01:33:28
问题 I would like to provide a maven plugin with a custom <packaging> that provides a complex lifecycle. As part of this lifecycle, I need to run the maven-compiler-plugin 2 times in different phases with different configurations. I would like to make this packaging as simple as possible to use. The goal would be that all a consumer of this plugin would have to do is select the new packaging and not have to do any plugin execution configuration: <project> <modelVersion>4.0.0</modelVersion>

How to package an Android Library for Android Studio

女生的网名这么多〃 提交于 2019-12-08 05:46:10
问题 I'm maybe missing something but I do not get it. How and where can you publish your libs (done with Android Studio as a module) in order that the people just have to write (for example) compile 'se.emilsjolander:stickylistheaders:2.5.2' in their build.gradle ? I saw things like jCenter repositories but I've no experience with packaging and found it very confusing. Thanks for help! :) EDIT Of course, I want to publish a github project under Apache :) 回答1: https://jitpack.io/ is also a good

Why would one use an egg over an sdist?

﹥>﹥吖頭↗ 提交于 2019-12-08 04:00:29
问题 About the only reason I can think of to distribute a python package as an egg is so that you can not include the .py files with your package (and only include .pyc files, which is a dubious way to protect your code anyway). Aside from that, I can't really think of any reason to upload a package as an egg rather than an sdist. In fact, pip doesn't even support eggs. Is there any real reason to use an egg rather than an sdist? 回答1: One reason: eggs can include compiled C extension modules so

Transitive AAR dependencies in Maven

元气小坏坏 提交于 2019-12-07 10:01:27
问题 I'm building an Android app from a Maven project that is using the android-maven-plugin. In this project I'm using the new beta data-binding library. It is contained in the local m2repository of the Android SDK (extras/android/m2repository). The libraries in this repository are packaged as type aar. I can add the dependency in my pom like this: <dependency> <groupId>com.android.databinding</groupId> <artifactId>library</artifactId> <version>1.0-rc1</version> <type>aar</type> </dependency>

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

孤人 提交于 2019-12-07 04:27:49
问题 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? 回答1: 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

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

末鹿安然 提交于 2019-12-07 02:58:08
问题 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