From dev-return-70614-archive-asf-public=cust-asf.ponee.io@cordova.apache.org Sat Jan 6 03:37:36 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 23858180647 for ; Sat, 6 Jan 2018 03:37:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0AA85160C28; Sat, 6 Jan 2018 02:37:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4FF5B160C27 for ; Sat, 6 Jan 2018 03:37:35 +0100 (CET) Received: (qmail 42862 invoked by uid 500); 6 Jan 2018 02:37:34 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 42850 invoked by uid 99); 6 Jan 2018 02:37:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2018 02:37:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3E2F318078F for ; Sat, 6 Jan 2018 02:37:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.111 X-Spam-Level: X-Spam-Status: No, score=-0.111 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=psychogenic.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cWDEXfosO4ux for ; Sat, 6 Jan 2018 02:37:31 +0000 (UTC) Received: from niubi.psychogenic.com (niubi.psychogenic.com [158.69.206.158]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 74C805F1BA for ; Sat, 6 Jan 2018 02:37:31 +0000 (UTC) Received: from [192.168.0.169] (modemcable093.201-162-184.mc.videotron.ca [184.162.201.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by niubi.psychogenic.com (Postfix) with ESMTPSA id D58E07D31E for ; Fri, 5 Jan 2018 21:37:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=psychogenic.com; s=mail; t=1515206244; bh=ekvEee+03xZp+hTtN9DF+luJRpApI+H9bioOfn8piDY=; h=Subject:To:References:From:Date:In-Reply-To:From; b=LmkLfAkaPZ8UBrPn/h+t9SW1FH63xHaqAjyo04kQKrMNkb4XHdaWq1K4uO/W/oZqR 5fd9S9GTAtwW1TlEH9U1OovcIMq9zLNMeIo0zA+e/D9jSUNb519UJXotU+Xt0QOpK1 3crprjkLsRm8s3dJ9UxwI7apYQhUgaQgv78SCz7A= Subject: Linux Platform Integration Alpha (Api.js etc) To: Cordova Dev References: <865d4be2-c5dc-00b8-9d73-bdeb8f21a959@psychogenic.com> From: Pat Deegan Message-ID: <333c808a-c213-5e44-046e-c70119a91332@psychogenic.com> Date: Fri, 5 Jan 2018 21:37:24 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Aloha, Ok, so it's still a bit rough around the edges but I've got a linux/coraline platform running (and a few related questions). It's available at https://github.com/psychogenic/cordova-linux.git Assuming you have: - a linux box, - cordova, - cmake/cpack (https://cmake.org/), - coraline (https://coraline.psychogenic.com) and some way to build linux bundles (I've got debuild and alien) You should be able to do: $ cordova create SomeApp com.example.someapp SomeApp $ cd SomeApp $ cordova platform add https://github.com/psychogenic/cordova-linux.git $ cordova build And wind up with some interesting files in ...SomeApp/platforms/cordova-linux/packages What I get in there: someapp_1.0.0.deb someapp_1.0.0.rpm someapp_1.0.0.zip with all the right stuff within (at least for the deb, can't really test the RPMs and don't know how to setup their dependencies etc). The name of the bundles/content directory is generated from the id (bla.bla.thiswillbethename), the versions are taken from the config file, etc. So everything (hopefully) works as you'd expect. *** 4 Questions *** * 1) by what magic do the other platforms get nice names? The android platform, for instance, has seems to have "name": "cordova-android" but `platform ls` shows: $ cordova platform ls Installed platforms: cordova-linux 0.0.6 Available platforms: android ~7.0.0 browser ~5.0.1 ios ~4.5.4 osx ~4.0.1 windows ~5.0.0 www ^3.12.0 I can't bring myself to call my package "linux" (!) but why is it called "cordova-linux" in the listing? * 2) how am I supposed to use Api.prototype.requirements? The test sample doesn't make it obvious. I'd like to ensure cmake and coraline are actually installed. * 3) how do we throw CordovaError? The system barfs in an ugly way when I do so. * 4) at this time, I've elected to preserve older packages in that output directory (.../cordova-linux/packages). So if you cordova clean the build directories and all that go away, but the various versions of bundles/zip files are preserved unless you do a `platform rm`. Is *** Further Improvements *** So, if this is a good start and it's likely to get included, I'll do a little more legwork on the plugins side to ensure the bundles have any plugins requested as dependencies, and such. I'd also like to know if there's anything I'm not doing correctly or should otherwise change to be more compliant with expectations. Also, if anyone is capable of testing on an RPM-based distro, that'd be cool as I'm flying completely blind in this department for the moment. Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org