Michal et al,

I hope this forwarded conversation answers your question.

Forwarded Conversation
Subject: jwiki file directory upload
------------------------

From: Brian Schott <[email protected]>
Date: Sun, Sep 20, 2020 at 10:15 AM
To: Chris Burke <>


Chris,

Some advice, please.

I have a newer version of a jqt opengl turtle graphics system, tgsjo, that
I would like to upload to the jwiki. There are 6 files, one of which is a
.txt readme file, and they are not in Project form, but in a single
directory inside the User directory.

My overall goal is to put them into a single file, preferably compressed,
that when opened would produce a single directory named tgsj, and which is
ultimately accessed using the following pattern within the main script.

...
Path=. jpath '~User/tgsjo/'
path=. Path&,
require path 'tgsjoalias.ijs'
...

But I am willing to try other alternatives, if you suggest. Because it is a
jqt app, I guess it could be put into a Project, but I have not been a user
of Projects. Would doing so, make (storing and) accessing the package
easier. And if so, could I get some help in making it a Project? (and,
would the readme.txt file fit into this approach?)

I am aware that the jwiki does not accept .zip files, but could a .zip file
just be renamed as a .somethingelse file that the user could re-rename
before unzipping?

Thanks,

-- 
(B=)


----------
From: chris burke <>
Date: Sun, Sep 20, 2020 at 7:42 PM
To: Brian Schott <[email protected]>


Brian

The problem is that the wiki is not intended as a software distribution
system.

If possible, I suggest that you make a personal addon for it. That way
you can update it as you wish without having to save new files to the
wiki. You need a github account.

As an example, in a recent J, try:

   install'github:cdburke/testjal'
installed: cdburke/testjal master

   dir '~addons/cdburke/testjal'
testjal   <dir>     10-Jun-18 10:55:53

   dir '~addons/cdburke/testjal'
manifest.ijs         163 10-Jun-18 10:55:53
test.ijs              15 10-Jun-18 10:55:53

Use this as a template for your addon.

BTW, projects are primarily to help with development, not distribution.

Chris

----------
From: Brian Schott <[email protected]>
Date: Mon, Sep 21, 2020 at 3:25 PM
To: chris burke <>


Chris,

Thanks for those great tips.
I have made a personal addon as you suggested.
Please take a look.

https://github.com/zerowords/tgsjo




-- 
(B=)


----------
From: chris burke <>
Date: Mon, Sep 21, 2020 at 4:36 PM
To: Brian Schott <[email protected]>


This worked perfectly!

The one suggestion I have is that you make a 2-level directory, which
is how all the other addons are set up. It allows a short form to load
the script, and also lets you use the same top level directory for
another addon.

For example, you might use zerowords/tgsjo as the directory. If so, it
would be loaded as:

   load 'zerowords/tgsjo'

Note - you would need to update manifest.ijs and the Path definition
in tgsjo.ijs.

The directory would look like:

   dir '~addons/zerowords/tgsjo'
manifest.ijs             268 21-Sep-20 13:16:55
readme.ijs              4372 21-Sep-20 13:16:55
tgsjo.ijs              13380 21-Sep-20 13:16:55
...

If you make this change, let me know and I will test once more, then
you can announce.

----------
From: Brian Schott <[email protected]>
Date: Mon, Sep 21, 2020 at 5:32 PM
To: chris burke <>


Chris, I think I made the change you recommended.
I changed the readme.md to reflect the changes, too.
That is smoother. I hope I got it right.

--
(B=) <-----my sig
Brian Schott





On Sun, Mar 7, 2021 at 10:45 AM Michal Wallace <[email protected]>
wrote:

> I'd like to make a package for gridpad, the viewmat-with-drawing thing I
> use in my videos, so that other people can easily download and import it.
>
> How do I make that happen?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to