Giter Club home page Giter Club logo

spikerepo's Introduction

repo.me

A modern package manager repository template. This template contains samples on how you can easily make depiction pages without replicating your html pages. The pages are styled using Bootstrap which is really easy to use (for Cydia), and the Sileo pages are styled using JavaScript Object Notation.

If you use web depictions / Reposi3, Sileo now converts web depictions to native depictions in realtime.

This guide does NOT cover creating .deb files but will briefly cover assiging depictions.

Note: With the release of Silica from Shuga, I highly recommend using that over this for Sileo, however, do as you wish.

How to use this template

If you are not hosting your repo on Github Pages, you can download the zip file here and extract to a subfolder on your website.

Release File

Edit Release file. Modify the items pointed by <--

Origin: repo.me  <--
Label: repo.me   <--
Suite: stable
Version: 1.0
Codename: ios
Architectures: iphoneos-arm
Components: main
Description: repo.me - a modern & legacy apt repository template  <--

Branding

Open index.html Change <title>repo.me</title> to whatever you wish. Change lines 54 - 63 to whatever you wish. Change line 71 into your own URL. Note: YOU DO NOT NEED THIS. YOU CAN ALSO MAKE YOUR OWN. DO WHAT YOU WISH.

Add "CydiaIcon.png" for your Cydia / Sileo Repository Logo.

Page Footers

This data are the links that appear at the bottom of every Cydia Depiction. The data is stored in repo.xml at the root folder of your repo.

<repo>
    <footerlinks>
        <link>
            <name>Follow me on Twitter</name>
            <url>https://twitter.com/Sukarodo</url>
            <iconclass>glyphicon glyphicon-user</iconclass>
        </link>
        <link>
            <name>I want this depiction template</name>
            <url>https://github.com/sukarodo/sidia</url>
            <iconclass>glyphicon glyphicon-thumbs-up</iconclass>
        </link>
    </footerlinks>
</repo>

Depictions: Native Folder Is Sileo, Web is Cydia

Adding a simple depiction page (Cydia)

Go to the depictions folder and duplicate the folder com.sukarodo.oldpackage. Rename the duplicate with the same name as your package name. There are 2 files inside the folder - info.xml and changelog.xml. Update the 2 files with information regading your package. The tags are pretty much self-explanatory. Contact @sukarodo for questions.

info.xml.

<package>
    <id>com.sukarodo.oldpackage</id>
    <name>Old Package</name>
    <version>1.0.0-1</version>
    <compatibility>
        <firmware>
            <miniOS>5.0</miniOS>
            <maxiOS>7.0</maxiOS>
            <otherVersions>unsupported</otherVersions>
            <!--
            for otherVersions, you can put either unsupported or unconfirmed
            -->
        </firmware>
    </compatibility>
    <dependencies></dependencies>
    <descriptionlist>
        <description>This is an old package. Requires iOS 7 and below..</description>
    </descriptionlist>
    <screenshots></screenshots>
    <changelog>
        <change>Initial release</change>
    </changelog>
    <links></links>
</package>

changelog.xml.

<changelog>
    <changes>
        <version>1.0.0-1</version>
        <change>Initial release</change>
    </changes>
</changelog>

Adding a simple depiction page (Sileo)

Go to the /depictions/native/com.sukarodo.samplepackage and copy the file depiction.json. Move into a folder labeled as your package name. Edit The Labeled Parts (i.e. VERSION_NUMBER, TWEAK_NAME, etc.)., use the Sileo Depiction Generator by @M4cs: SileoGen, or use any of the templates from popular repositories at /assets/Depiction Templates Contact @sukarodo for questions.

Link the depiction page in your tweak's control file

You can add the depictions url at the end of your package's control file before compiling it. The depiction line should look like this:

Depiction: https://username.github.io/repo/depictions/web/?p=[idhere]

Replace [idhere] with your actual package name.

Depiction: https://username.github.io/repo/depictions/web/?p=com.sukarodo.oldpackage

For Sileo Depictions, add the SileoDepiction key in your control file before compiling it.

SileoDepiction: https://username.github.io/repo/depictions/native/com.sukarodo.samplepackage/depiction.json

Rebuilding the Packages file

With your updated control file, build your tweak. REMOVE THE PACKAGES FILE WITHIN FIRST Store the resulting .deb. file into the /debians/ folder of your repo. Build your Packages file and compress with bzip2.

Windows users, see dpkg-scanpackages-py or scanpkg.

Repository at last!

If you haven't done yet, go ahead and add your repo to your package manager. You should now be able to install your tweak from your own repo.

Cleanup

Just a cleanup step, remove the debs that came with this template and re-run the commands on step 3. You can keep the sample depictions for reference but they're not needed for your repo.

Sileo Extras

These are some extra things that can make your repository look even better on Sileo.

Featured Packages (sileo-featured.json)

Change The Following Lines:

 "url": "https://raw.githubusercontent.com/sukarodo/repo.me/master/assets/Banners/RepoHeader.png", <---- The Package Banner
        "title": "Sample Package", <---- Your Package Name
        "package": "com.sukarodo.newpackage", <---- The Actual Package

spikerepo's People

Contributors

mohamed-hmd avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.