| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I think this should be a separate gem, but we can agree on the design/implementation here. Since there are some dependencies (fpm, rpmbuild) they would also have to be added to the stack image. |
Sorry, something went wrong.
|
I'm not sure a separate gem is worth the effort tbh. There aren't great ways in the MRI Rakefile to detect if a mrbgem is installed and then to pull it in. We could hack stuff and then require stuff in there, but that seems SUPER hacky. |
Sorry, something went wrong.
|
Let's see if it's possible to build the packaging service we need before worry about doing any hacks. This seems like we can do rpm and deb, what about the other packages: dmg and windows? I think it should be all or nothing. |
Sorry, something went wrong.
|
Sorry for the delay (holidays :p)
done there toch/mruby-cli-docker@8d2d65d but as you refer into the Dockerfile to a public image (hone/mruby-cli), toch/mruby-cli-docker should be merged into it, right?
I've just pushed my solution: What do you think?
fpm can also generate osx package, I'll git it a try. |
Sorry, something went wrong.
|
Sounds good to me, let's try to get osx and msi working before we ship this. |
Sorry, something went wrong.
|
A quick update about my investigation.
For osx, I have two options, build a simple dmg package, or a brew package. It seems that dmg is more ubiquitous, but brew easier. what is your preference? |
Sorry, something went wrong.
|
Perhaps pkgbuild is something we can get out of osxcross? Myself, I'd prefer to build a package for OSX as that is more easily distributable (I don't also need homebrew installed). Although, I don't see why we can't offer both as ultimately all of this should be configurable [which] packages we actually output. Where are you stuck on msitools? I found a package for Wily Werewolf (whatever that is), so maybe we can just backport that? https://launchpad.net/ubuntu/+source/msitools |
Sorry, something went wrong.
I do not know, I have to check.
👍 let's start first with dmg which is the most ubiquitous.
With the upstream, configure failed even if all the dependencies were provided. error: Package `config' not found in specified Vala API directories or GObject-Introspection GIR directories I'll try first with the one you provided me before digging more the Vala error. Thanks a lot for your pointers. |
Sorry, something went wrong.
I guess it doesn't really matter which tools we use, so long as it works.
It looks like that msitools is just a meta package, maybe try finding the equivalent in the 14.04 repos, otherwise installing the newer packages manually until we find which one breaks. |
Sorry, something went wrong.
|
quick update. I've managed to install msitools into our docker and started to build msi package. |
Sorry, something went wrong.
|
@zzak I still need to try it on a real windows machine. Then, I'll work on dmg package. |
Sorry, something went wrong.
|
I just tried the x86_64 msi package on a windows 8. It works! (I can install and uninstall it, and I can run mruby-cli) I cannot easily access a win 32 install. Would you have one? |
Sorry, something went wrong.
|
Woot!
I don't but would compatibility mode work? |
Sorry, something went wrong.
I've tried to install the 32 msi package on the windows 8 machine and got a cryptic message informing me I can only this for package already installed ?! |
Sorry, something went wrong.
|
@toch Can you try installing the 32bit version of Windows 10? This link is also valid for 24 hours. |
Sorry, something went wrong.
|
Just downloaded it, I'll try it now. I've just pushed the dmg packaging. My OSX VM crashes I do not know why. Could you try the dmg packages? |
Sorry, something went wrong.
|
Sure! I will try out the OSX packages <3 On Monday, August 24, 2015, Christophe Philemotte notifications@github.com
|
Sorry, something went wrong.
|
It would be great if we can automatically test the packages on respective platforms. Even after some google-fu, I do not find any hosted CI service for win32, win64 (maybe AppVeyor), OSx32, or OSx64. Do you know one or another doing that? |
Sorry, something went wrong.
|
Found the problem for the i686 msi package, fixed. it works now. |
Sorry, something went wrong.
|
If the container will run on Windows we can use that to test the compiled For OS X we should be able to use Travis still, I think. On Monday, August 24, 2015, Christophe Philemotte notifications@github.com
|
Sorry, something went wrong.
|
I've fixed my VirtualBox setup, OSX VM works again. I've tried the dmg packages. It nearly works:
For both dmg and msi packages, the binary is not available in the PATH. Should it be? |
Sorry, something went wrong.
|
It would be nice to get CI hooked up for this, but I realize that's probably a little out of scope for this feature.
Perhaps this is a bug with the packager? How did you transfer the binary? (I know google drive will remove the executable bit)
For most installers, don't you have to put the thing someplace that already exists in your path? |
Sorry, something went wrong.
|
@zzak here an update:
The last changes are available in https://github.com/toch/mruby-cli-distpackage/blob/master/tasks/package.rake |
Sorry, something went wrong.
|
@toch Does dmg work then? I can help test osx and 64bit windows, but I'd have to reinstall for 32bit (I think). |
Sorry, something went wrong.
|
@zzak yes, dmg works. msi works also. I'm just looking for a way to set the environment path. It's a nice to have to help the user to set it. A simpler way to do that is to provide the instruction to set the env path. |
Sorry, something went wrong.
|
Also found this blog post, that might be interesting: |
Sorry, something went wrong.
|
So here's the output I see: Writing releases/v0.0.2/mruby-cli-0.0.2-x86_64-pc-linux-gnu.tgz Writing releases/v0.0.2/mruby-cli-0.0.2-i686-pc-linux-gnu.tgz Writing releases/v0.0.2/mruby-cli-0.0.2-x86_64-apple-darwin14.tgz Writing releases/v0.0.2/mruby-cli-0.0.2-i386-apple-darwin14.tgz Writing releases/v0.0.2/mruby-cli-0.0.2-x86_64-w64-mingw32.tgz Writing releases/v0.0.2/mruby-cli-0.0.2-i686-w64-mingw32.tgz Writing releases/v0.0.2/mruby-cli-0.0.2.tgz Packaging deb for x86_64 into packages/v0.0.2 Packaging deb for i686 into packages/v0.0.2 Packaging rpm for x86_64 into packages/v0.0.2 Packaging rpm for i686 into packages/v0.0.2 Packaging msi for x86_64 into packages/v0.0.2 (wixl:1742): wixl-CRITICAL **: wixl_msi_table_custom_action_add: assertion 'Source != NULL' failed (wixl:1742): wixl-CRITICAL **: wixl_msi_summary_info_set_author: assertion 'value != NULL' failed (wixl:1742): wixl-CRITICAL **: wixl_msi_table_property_add: assertion 'value != NULL' failed ** (wixl:1742): CRITICAL **: wixl_add_braces: assertion 'str != NULL' failed (wixl:1742): wixl-CRITICAL **: wixl_msi_table_property_add: assertion 'value != NULL' failed Packaging msi for i686 into packages/v0.0.2 (wixl:1748): wixl-CRITICAL **: wixl_msi_table_custom_action_add: assertion 'Source != NULL' failed (wixl:1748): wixl-CRITICAL **: wixl_msi_summary_info_set_author: assertion 'value != NULL' failed (wixl:1748): wixl-CRITICAL **: wixl_msi_table_property_add: assertion 'value != NULL' failed ** (wixl:1748): CRITICAL **: wixl_add_braces: assertion 'str != NULL' failed (wixl:1748): wixl-CRITICAL **: wixl_msi_table_property_add: assertion 'value != NULL' failed Packaging msi for x86_64 into packages/v0.0.2 genisoimage: Warning: no Apple/Unix files will be decoded/mapped Total translation table size: 0 Total rockridge attributes bytes: 1117 Total directory bytes: 6144 Path table size(bytes): 60 Max brk space used 22000 245 extents written (0 MB) Packaging msi for i386 into packages/v0.0.2 genisoimage: Warning: no Apple/Unix files will be decoded/mapped @toch It'd be nice to fix these warnings. Also, I think we should use the same output format as release so instead of: Packaging deb for x86_64 into packages/v0.0.2 We'd have: Writing packages/v0.0.2/mruby-cli-0.0.2-ARCH.deb It also seems like the ARCH is missing from the output, so I'd like to fix that as well. |
Sorry, something went wrong.
I'll read the blog post.
do you mean to no show them? for genisoimage, this is just information.
I'll fix that. |
Sorry, something went wrong.
|
@zzak update: better output is available toch/mruby-cli-distpackage@b99cd46 |
Sorry, something went wrong.
|
@zzak I've rebased onto subdirs and I've fixed the warning cf toch/mruby-cli-distpackage@b0801be Do you see anything else to do? |
Sorry, something went wrong.
|
I've rebased onto the PR #13 and squashed the commits. Before merging it, that PR hone/mruby-cli-docker#1 should be merged first into hone/mruby-cli-docker Two questions: 1/ should I put the code of toch/mruby-cli-distpackage here? 2/ According to mrblib/mruby-cli/setup.rb, the task release is not yet available when you setup your project with mruby-cli. Without that, I can't right now make the package task available neither. I suggest to implement that separately. What do you think? |
Sorry, something went wrong.
Right, we can keep this task private as well, until we're happy with it. |
Sorry, something went wrong.
|
We can make packaging available to users of mruby-cli vs devs a separate PR for sure. |
Sorry, something went wrong.
|
following a call I had with @zzak, here a summary of the things to decide and some other informations current situation:
dmgI do not know how to include a install action into the bundle such as linking the binary into /usr/local/bin what we would like to do. some apps do that when you run it the first time (e.g. atom), we should find someone who knows it msiwith the current msitools, the directive Environment is not recognized. It's then impossible to set it up during the installation. I've contacted the maintainer to understand how to support it end goal:the user shouldn't do something more than just install the package Tasks to do
To decidewe should decide if:
|
Sorry, something went wrong.
|
talked with @toch. I'm fine merging as is for mruby-cli itself. Let's make sure to make issues for fixing the MSI/DMG path stuff so it's tracked. We should probably wait on making all of this generally available (at least MSI/DMG) downstream of mruby-cli. |
Sorry, something went wrong.
|
Ok, let's clean this up and get it merged/shipped so we can start working on the next steps. |
Sorry, something went wrong.
|
done |
Sorry, something went wrong.
* release task depends on compile task * check the presence of toolchain before running the compile task * remove superfluoous load of mrbtest.rake
* abort the task if not run in-docker * env var MRUBY_CLI_LOCAL allows to run the rake task locally * local task can be added * refactoring of the check is-in-a-docker-container?
it seems that the options weren't correctly passed to the command.
* documentation about package task * it adds a packaging task * it builds package for deb, rpm, msi, and dmg
|
rebased onto master to resolve conflict |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Following discussion with @hone, here a first version allowing to package mruby-cli as a deb or rpm.
Some comments:
Is there anything I do not do right?