Results 1 to 8 of 8

Thread: Packaging up apps to share with other devs

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,732
    Blog Entries
    18

    Packaging up apps to share with other devs

    I've noticed that various Devs have been zipping up apps to share with other devs. In the deploy workspace you can create Lianja packages (.lpk file) then email these or attach to posts. You then can install these in the apps workspace by clicking on the "Install package" icon in the header bar at the top.

    FYI after you create a package it will be located in c:\lianja\packages.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #2
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,129
    Thank you Barry. I am one of these guys who proclaim "less talking and describing - more simulation apps uploading".
    Well, I tried package and will share screenshots here (I wish this forum to accept more then 5 images in a post).
    With the package all is done in one place and there is no need to deal with folders. I like it and will use it.

    Step #1
    Open your app and see if you use some libraries (will need to include them in package).



    Step#2
    See what databases you need to include. Better your app works on Southwind and can skip this step.
    I need here my special database "excel_test" with table "exceldata". I can not send 50000 records in my post (1MB) - and need to delete all records and send the structure only.
    In App Inspector's Console while my app is open:
    Code:
    browse
    delete from exceldata
    zap
    Will need to provide some mechanism to generate data. I added the code in my app to generate data :
    Code:
    IF inuse("exceldata") = .T.
       SELECT exceldata
    ELSE
       select 0
       use exceldata
    ENDIF
    if rowcount()=0
       generate 50000
    endif
    This will generate 50000 records of random data.



    Step #3

    Click Deploy from Modebar. (you must close your app first). Check your app, databases and libraries your app needs.

    Name:  package1.jpg
Views: 142
Size:  73.7 KB

    Then click Build package, name it and will get log

    Name:  package2.jpg
Views: 133
Size:  159.0 KB

    Your LPK-file is in folder C:\Lianja\packages. You can attach this file to your post




    Step #4
    On destination (developer who wants to work on your problem and downloaded your LPK-file):
    In Apps workspace click Install package

    Name:  package3.jpg
Views: 132
Size:  149.4 KB

    You will see it installs, asking to overwrite if any exists.
    New app is now shown in your Apps and you can investigate it, learn what the others are doing and help to someone who is stuck. He will return help some day when you will need new ideas.
    Last edited by josipradnik; 2015-02-19 at 03:23.

  3. #3
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,129
    What a bummer!
    I forgot to upload my app as an example. But...
    This forum does not permit upload lpk-files.

    Name:  _SP32-20150219-102842.jpg
Views: 128
Size:  18.1 KB

    Until web admin solves this issue, stick with ZIP. Sorry.

  4. #4
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    6,732
    Blog Entries
    18
    We will allow .lpk files.

    The upload limit is to stop spammers. Not everyone is a legitimate Lianja developer.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  5. #5
    Lianja Team chris.mavin's Avatar
    Join Date
    Feb 2012
    Location
    London UK
    Posts
    29
    Hello josipradnik,

    We have now enabled lpk upload to the forums.

    upload.lpk

  6. #6
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,713
    Note: ZAP physically deletes all records, so

    Code:
    use mytable
    zap
    is the equivalent of:

    Code:
    use mytable
    delete all
    pack
    or

    Code:
    delete from mytable
    pack
    Also note that ZAP resets the table SEQNO.

  7. #7
    hmmm.... I missed this entirely.

    I will send the whole package tonight.

    Thanks.

    Herb

  8. #8
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893

    at least I'm not alone ..

    Fabio

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us