packaging

How to package sources in a jar in Netbeans for maven projects?

*爱你&永不变心* 提交于 2019-12-13 02:24:22
问题 When building maven projects (Java) in Netbeans, by default, sources are left out. How to package sources in a jar in Netbeans for maven projects? Something like: myproject.jar myproject-sources.jar 回答1: You can do it in two ways. First way - Project Properties Right click on the project > Properties Go to > Actions Either add a custom one (click Add custom... ) for a separate action or add it to an existing one (e.g. Build with dependencies) by selecting it. In the Execute Goals menu, add

How to bundle Electron application and windows service together?

荒凉一梦 提交于 2019-12-12 22:17:38
问题 I am very new with electron application. I need some help with election installation . I have an Electron desktop application and a windows service . I can start and stop my pre installed services by using sudo-prompt package. I am creating windows installer by using electron-winstaller package. But I want to bundle my windows service along with my electron application . My requirement is when I install my electron package then it should install my service also, when I uninstall my package

How to depends of a system command with python/distutils?

点点圈 提交于 2019-12-12 20:19:53
问题 I'm looking for the most elegant way to notify users of my library that they need a specific unix command to ensure that it will works... When is the bet time for my lib to raise an error: Installation ? When my app call the command ? At the import of my lib ? both? And also how should you detect that the command is missing ( if not commands.getoutput("which CommandIDependsOn"): raise Exception("you need CommandIDependsOn") ). I need advices. 回答1: I wouldn't have any check at all. Document

install-package : Dependency loop detected for package 'Microsoft.Data.Sqlite'

与世无争的帅哥 提交于 2019-12-12 19:19:42
问题 I am trying to install Microsoft.Data.Sqlite with PowerShell's cmdLet install-package : $pkg = find-package -name Microsoft.Data.Sqlite install-package -force -scope currentUser -verbose $pkg The second command takes a long time and then responds with install-package : Dependency loop detected for package 'Microsoft.Data.Sqlite'. At line:1 char:1 + install-package -force -scope currentUser -verbose $pkg + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : Deadlock

setuptools and passing options to dependencies

一世执手 提交于 2019-12-12 13:07:53
问题 I'm trying to package a module for pypi and I have mercurial as one of the dependencies. The target machines may or may not have build tools so I'd like to install mercurial with the --pure option in place, but I couldn't find a way to instruct setup.py to install the dependencies in a specified manner. Other than installing the deps separately, I couldn't find a way to do this. The best I have so far is https://groups.google.com/forum/?fromgroups#!topic/turbogears/t9rZAMSj_NQ Which although

What are the benefits and downsides of using the Python packaging *.egg format over a simple directory with setup.py?

风格不统一 提交于 2019-12-12 08:16:14
问题 When I release a program, I usually just create a setup.py and put it on pypi. It's installable with pip, I can always share it easily with others. It works for me, and apparently for a lot of people. I see the benefit of making an exe, a deb or a rmp to easy sysadmin. But I really don't see the point of using eggs. Can you tell me what can I gain from it ? I also once read that eggs had downsides, but I can't find the article anymore. Could you describe to me what problems using this

android-wear embedding old (cached) wear apk in the mobile-release apk

醉酒当歌 提交于 2019-12-12 07:15:48
问题 I am generating the signed apk using the option Build -> Generate Signed APK Problem is mobile-release.apk doesn't embed the updated wear apk. I have tried changing text / logic, but it always display the old thing. I have tried all of the following, any ideas why it keep embedding the old wear apk instead of creating the new one. File -> Invalidate cache / Restart. Build -> Clean + Rebuild project Clear cache of wear app on phone Settings -> Resync all apps (option on handheld wear app)

How to assemble multiple .NET executables in a single application suite package with MSBuild?

时间秒杀一切 提交于 2019-12-12 05:32:25
问题 I have multiple solutions each having multiple projects. What I want to do is to assemble a subset of these projects from possibly different solutions into a single "package" and deploy it as such. I could edit each project and change it`s output folder but this would be counter productive, espacially that some of these projects are shared dependency amongst the different target packages. This would make a tedious mess and very error prone. Ideally also I would like some freedom as to how

Best way to add generated files to distribution?

若如初见. 提交于 2019-12-12 05:30:58
问题 I have a quite complex (C++) project using autoconf / automake, which includes some "generated" files (foo.yy -> foo.cc). Actual builds are done using a "control script" (Gentoo .ebuild for those familiar with the concept), on various platforms. Now, one of the target platforms does not properly support the foo.yy -> foo.cc step, and has to use the foo.cc file generated on a Linux box. Now I have two ways to go about this: 1) Check in foo.cc into the project repository and somehow patch

CMakeLists and packaging files for automatic Edje file compilation in project

拥有回忆 提交于 2019-12-12 04:26:05
问题 I'm very new to EFL. And now I'm trying to get used to it. There is library named Edje. This library allows theming and other sort of things. But files for it are created in plain text and have to be compiled using edje_cc . How can I add this compilation to CMakeLists.txt file and to packaging.spec file for it to be properly compiled and installed on the machine? Sorry for my broken English. 回答1: In your CMakeLists.txt, do: ADD_CUSTOM_TARGET(your_edj_file.edj COMMAND edje_cc your_edc_file