Theme Packer

3. April 2011 14:44 by rtur.net in Gallery  //  Tags: , ,   //   Comments (9)

boxAs much as I like power and flexibility NuGet provides to developers, I do realize that lots of people just want their packing task done fast and efficient and have no desire dig into command line. NuGet also has a little tool for building and editing packages graphically, and I’ve been using it for a while too. Unfortunately with 1.2 released last week, packages created with this tool (as well as NuGet 1.2 command line) no longer compatible with dnbegallery. Gallery built on top of several OS projects that all utilize NuGet 1.1, and upgrade will probably take a while. With all that under way, I made small utility to help me package themes for the gallery really quick, may be others would like to use it too. So here it goes.

Download and unzip file attached to the end of this post. You’ll get a folder called “ThemePacker” – move it into the same directory where your BlogEngine themes are. You should have “ThemePacker” and “themes” folder at the same level, and you need .NET 4.0 runtime installed. That’s all it takes to setup, here is how to use:

1. Double-click “BeThemePacker.exe” located in that “ThemePacker” directory. Select folder dialog will pop up, and if your themes directory at the same level as packer application, it will be selected so you just click “ok” button. Otherwise navigate and select BE themes folder.

Packer-dialog

2. Pick theme you want to package and fill in all fields, content should be self-explanatory.

Packer-form

3. Click “create package” button and then hit any key to close command window that application will launch.

Packer-cmd

4. Now go look at “ThemePacker/packages” folder. There should be a file with same name as your theme and extension “.nupkg” – it is ready to be uploaded to dnbegallery.

Packer-nupkg

That’s all to it. Don’t expect rich functionality, it has many limitations. For example if your theme has files outside theme’s folder they will be ignored, you can’t open and edit existing NuGet package etc. It does one thing only but it makes packaging theme really fast and easy.

ThemePacker.zip (113.14 kb)

Comments (9) -

blogenginewall
blogenginewall
4/3/2011 10:25:49 PM #

Hi Ruslan,

Thanks for this utility. I was waiting for this since last couple of days to upload some blog engine themes.




Jimmy
Jimmy
4/8/2011 5:31:02 PM #

Now this is something I can use.!

Thx.! I´ve just uploaded one of my themes, and more will follow.!

rtur.net
rtur.net
4/9/2011 10:21:22 AM #

Awesome, you can also update your packages I uploaded earlier, just increment version number. For example, if it is 2.0.0.0 use 2.0.0.1

Doug Schieffer
Doug Schieffer
4/26/2011 9:03:00 AM #

This is going to be very helpful as we move towards themes per customer approach.

Consumercellular
Consumercellular
7/11/2011 2:21:25 AM #

I study on this field and this article really helps. Thanks.

Sashwat Sharma
Sashwat Sharma
7/28/2011 1:20:59 AM #

is there a workaround to make the 1.2 version compatible with the dnbegallery?

rtur.net
rtur.net
7/28/2011 9:09:43 AM #

It works fine with latest versions, that issue in 1.2 has been resolved going forward.

Barrie
Barrie
9/6/2011 1:25:14 AM #

Perfect timing. I can sure use this to save a little time - Thanks!

Arkitektstockholm
Arkitektstockholm
9/23/2011 3:52:59 AM #

I use Nuget 1.2! Thanks for the info, awsome post!

Pingbacks and trackbacks (2)+

Comments are closed