Creating an Extension Release using git-archive

A place to discuss Extensions Development
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Creating an Extension Release using git-archive

Postby bonelifer » 29 Nov 2014, 15:04

When submitting an extension, some files in your repo may not need to be included in your release archive when submitting to the Customisation Database at phpBB.com. You may have files for running TravisCI or other things included. I've compiled a .gitattributes and a .gitignore file for the repos, based off some from one of RMcGirr83's extensions. I've added export-ignore entries in the .gitattributes file for files that don't need to be in the release archive. In the .gitignore file I've added the vendor folder since it doesn't need uploading at all. If you've already implemented the TravisCI/EPV testing from this post, , then this will also exclude the files for TravisCI. The bash/batch files have comments explaining what is going on. You'll need to change before running it. You'll also have to change to your vendor/namespace, which is usually your phpBB.com username. For the bash file you'll also need to . The files from will need to be added/pushed to your git repo.

Using the git-release.sh\git-release.bat files is fairly straight forward. On the command-line(terminal) go to the directory for the git repo. Then run:

Linux:


Windows:


Example:




That will produce a zip file that contains the repo in this directory structure:


Example:


The zip file will be named:


Example:



git-release.zip
(769 Bytes) Downloaded 296 times

win-git-release.zip
(1.4 KiB) Downloaded 299 times

git-dot-files.zip
(866 Bytes) Downloaded 296 times

User avatar
bonelifer
Administrator
Administrator
Posts: 477
Joined: 24 Jun 2006, 17:48
Real name: William
Location: htpc.MythBuntu
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Creating an Extension Release using git-archive

Postby bonelifer » 30 Nov 2014, 18:39

Updated the git-release files to check to make sure:


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Extension Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests