Showing posts with label Deployment. Show all posts
Showing posts with label Deployment. Show all posts

Wednesday, 27 February 2013

Publishing a Windows Phone app

1. Create your app and store the code on GitHub (mine is open source so github and phonegap are free)

2. Use http://build.phonegap.com to generate the xap file, no keys are required.  Download the xap file.

3. Register as a developer with Microsoft around $99 fill out the registration some tax information and your app details:

https://dev.windowsphone.com

4. Wait up to 5 business days…

image

Publishing an Android app to Google Play

Using PhoneGap to build my Android package from GitHub here are the steps to publish to Google Play.

1. Store your app source code in github (mine is open source so github and phonegap build services are free).

2. Install the latest jdk on your computer:  http://www.oracle.com/technetwork/java/javase/downloads/index.html

3. Create a key using the keytool, by opening a command prompt:
cd "C:\Program Files\Java\jdk1.7.0_15\bin"
keytool -genkey -v -keystore itineraryhuntermobile-key.keystore -alias itineraryhuntermobile -keyalg RSA -keysize 2048 -validity 10000

(replacing itineraryhuntermobile with the name of your application)

keytool-1

3. Add your key to phonegap build cloud services:

edit-account

5. Use http://build.phonegap.com to rebuild and download the APK file

Once you’ve assigned your key to the Android section, entered your password which phonegap store for one hour, you can rebuild a release version of your apk file.

build-download

6. Register with Google Play, pay the $25 developer fee and fill out the application details including application screenshots:

https://play.google.com/apps/publish

google-play

7. Wake up the next morning and your app will be in the Google Play store:

 

google-playapp-store

You can find it in Google Play here:  https://play.google.com/store/apps/details?id=itinerary.hunter.mobile

Thursday, 27 October 2011

Configuring a Web Server to host Silverlight Apps

To configure your web server to host your silverlight application, you’ll need to add the following MIME types to your web server:

MIME type Extension
application/xaml+xml .xaml
application/x-silverlight-app .xap

And to setup the server for WPF and ClickOnce applications:

MIME type Extension
application/manifest .manifest
application/x-ms-application .application
application/x-ms-xbap .xbap
application/octet-stream .deploy
application/vnd.ms-xpsdocument .xps

Friday, 10 June 2011

Updating Silverlight OOB Applications

In Silverlight Out Of Browser applications (OOB), it’s easy to give ClickOnce style new version updates to deployed apps.  Just add the following code to your App.xaml.cs file:

public App()
{
this.Startup += this.Application_Startup;

InitializeComponent();

if (!Application.Current.IsRunningOutOfBrowser) return;

Application.Current.CheckAndDownloadUpdateCompleted += this.CheckAndDownloadUpdateCompleted;
Application.Current.CheckAndDownloadUpdateAsync();
}

new void CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e)
{
if (e.Error == null && e.UpdateAvailable)
{
MessageBox.Show("Application updated, please restart to apply changes.");
}
}

private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = new MainPage();
}

To show this working, I’ve created an app that simply displays it’s current version (set in the Properties/AssemblyInfo.cs file.


ScreenShot081


Here’s the code behind for the MainPage.xaml.cs:

using System;
using System.Reflection;
using System.Windows.Controls;

namespace UpdatingOOB
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();

Assembly assembly = Assembly.GetExecutingAssembly();
var assemblyName = new AssemblyName(assembly.FullName);
Version version = assemblyName.Version;

tbVersionInfo.Text = string.Format("Version: {0}.{1}.{2}.{3}",
version.Major,
version.Minor,
version.Build,
version.Revision);
}
}
}

Change code (or just the version number), rebuild your Silverlight app source code and re-run your Silverlight host web project to push your updated xap file to the host.


Now when you run your Silverlight OOB application the update is detected and message displayed.


ScreenShot082


When you restart the Silverlight OOB the new version runs.


ScreenShot083


You can download the code here:


http://stevenhollidge.com/blog-source-code/UpdatingOOB.zip