Homebrew PHPInstallMiiRepo

ChaosJester

Active Member
OP
Newcomer
Joined
Jun 16, 2015
Messages
33
Trophies
0
Age
41
XP
110
Country
Hi All,

Posted this to the InstallMii thread but thought it should get its own so we don't clog up their thread.

Myself and @LiquidFenrir have been working on a front end to the InstallMii repo homebrew app.

I have made a new version, PHPInstallMiiRepoAdmin that adds a lot of functionality.

Requirements:
  • InstallMii - Available here https://gbatemp.net/threads/wip-installmii-graphical-repository-downloader.406097/
  • A webserver running apache and PHP, this script is no longer OS dependent so Windows or Linux is good
  • PHP >= 5.5 for Admin version
  • MySQL for Admin version
  • OR PHP SQLite3 for SQLITE version
  • A text editor to do some very minimal coinfig, Admin version has an installer so minimal manual config is required
  • FTP client to upload files to server
  • Homebrew apps on your server MUST be in the /3ds/ directory!
There is a very basic index page that will contain a link to the repo.list file.

The repoupdate.php can be run either on demand or by cron/scheduled task if wanted. The script will create the required package.list in each directory under /3ds/ and also create the packages.json file in the root of the repo. If there is no smdh file, this will not get picked up by this script. If you have any homebrew apps that do not include an smdh file, there are many tools out there to make your own.

The Admin version has a database backend that will store your repo and package details and will create entries for all folders, regardless of the existence of an SMDH file. It will enter an entry with no package name, so that must be entered manually.

Basic script - https://github.com/chaosjester/PHPInstallMiiRepo/releases
Admin (MySQL version) - https://github.com/chaosjester/PHPInstallMiiRepoAdmin/releases
Admin (SQLite version) - https://github.com/chaosjester/InstallMiiRepoAdmin/releases


Basic Script Install instructions:
  • Hit the link above and grab the latest release
  • Unzip
  • Edit reposettings.php to your liking
  • Upload to webserver
  • Create 3ds directory if not already done
  • Upload Homebrew apps
  • Either go to http://yourrepoaddress.com/repoupdate.php to create all the files or set up a cron/scheduled task to run "php -q /path/to/your/repo/repoupdate.php"
  • Check out the index page at http://yourrepoaddress.com/
  • Download repo.list and place on your 3DS' SD card in the InstallMii directory
  • Check out your repo!
Admin (MySQL version) install instructions:
  • Download latest release
  • You might need to create SQL database on your server, along with a user that has access to create tables and modify tables, though the installer may create them for you
  • Upload to webhost
  • Go to http://yourrepo.com/, you will be directed to the install page
  • On the install page, follow the directions to create the database and user
  • Head back to http://yourrepo.com/admin and ensure you can log in
  • Create additional admin accounts if required, otherwise it is advised to delete the /admin/install directory
  • Once in, the interface is pretty straight forward.
  • Once you have generated all of the files needed, download the repo.list from the home page and place on your SD card
Admin (SQLite version) install instructions:
  • Download latest release
  • Upload to webhost
  • Go to http://yourrepo.com/, you will be directed to the install page
  • On the install page, follow the directions to create the database and user
  • Head back to http://yourrepo.com/admin and ensure you can log in
  • Create additional admin accounts if required, otherwise it is advised to delete the /admin/install directory
  • Once in, the interface is pretty straight forward.
  • Once you have generated all of the files needed, download the repo.list from the home page and place on your SD card


Current issues:
  • Author text displays incorrect if there are any non-alphanumeric characters, though this may be an issue with InstallMii (Pretty sure it is)
  • If the SMDH file is not the same name as the directory it is in, it is not scanned or scrapped (Working on that)
To do's:
  • Let me know what you might want!
Credits:
  • @simonepsp for creating InstallMii
  • @LiquidFenrir for the awesome PHP skills (ie, pretty much creating everything from scratch based on a few concepts I came up with in a totally convoluted crazy way and making them easier and platform independent)
  • @ChaosJester for core concept and index page, Admin version development
 

Attachments

  • repo.png
    repo.png
    97.3 KB · Views: 248
Last edited by ChaosJester,
  • Like
Reactions: Brawl345

LiquidFenrir

Well-Known Member
Newcomer
Joined
Jan 15, 2016
Messages
90
Trophies
0
XP
627
Country
France
To make it public: since @simonepsp shows no sign of life/update to installMii, I'm working on a clone in Lua with lpp-3ds.
Why Lua? Because I suck at C, and it comes with some bonuses: native zip extraction, smdh info extraction (including icon) and forced open-source
 

GalladeGuy

Cool and Epic
Member
Joined
Oct 28, 2015
Messages
2,686
Trophies
1
XP
3,105
Country
United States
To make it public: since @simonepsp shows no sign of life/update to installMii, I'm working on a clone in Lua with lpp-3ds.
Why Lua? Because I suck at C, and it comes with some bonuses: native zip extraction, smdh info extraction (including icon) and forced open-source
You're a bit late on that. I've been working on my own for the past 2 weeks. :P
https://github.com/GalladeGuy/Downlow
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • RedColoredStars @ RedColoredStars:
    Im going right when they open at 8am. Been waiting 2 weeks to get her back
  • sp3off @ sp3off:
    Chrome is like "BRRRRRRRR" but I dislike the fact it's a powerhouse, and the fact that Manifest v3 exists
  • RedColoredStars @ RedColoredStars:
    Im not sure if a ram stick has a whole lot to do with your eye. lol :P
  • K3Nv2 @ K3Nv2:
    Is your porn loading fine?
  • RedColoredStars @ RedColoredStars:
    well. it loads slower on FF. And timing is everything with porn so.....
  • RedColoredStars @ RedColoredStars:
    even a couple seconds matter. lmao
  • K3Nv2 @ K3Nv2:
    Well if he's humping at 4x speed very well could be a failing stick
  • K3Nv2 @ K3Nv2:
    Or isp dips
  • sp3off @ sp3off:
    Taking more time to load the page than to fire up the paper towel is an issue
  • K3Nv2 @ K3Nv2:
    What's worse is the dinosaur game popping up when the lotion comes out
    +1
  • RedColoredStars @ RedColoredStars:
    You use paper towels too? :rofl2:
  • sp3off @ sp3off:
    Better keep the safe place 'safe'
  • RedColoredStars @ RedColoredStars:
    Bounty. The quicker picker upper? lol
  • K3Nv2 @ K3Nv2:
    Aloe vera now with rgb
  • sp3off @ sp3off:
    On a serious note, have you tested your ISP DNS answer time ?
  • sp3off @ sp3off:
    Last time i've checked, my ISP was like 5/6 ms slower than Cloudflare x)
  • RedColoredStars @ RedColoredStars:
    yeah. I've tried changing dns too.
  • K3Nv2 @ K3Nv2:
    Check cpuid make sure ram sockets are detected
  • sp3off @ sp3off:
    (and i'm fibered, 5gb shared downloads, 1gb upload)
  • K3Nv2 @ K3Nv2:
    Or even in bios
  • RedColoredStars @ RedColoredStars:
    its mostly when starting firefox that it's noticible slower. Opening and loading the homepage. Tried fresh installs and all.
  • K3Nv2 @ K3Nv2:
    Knowing your system specs would help
  • sp3off @ sp3off:
    if you're in win 11, have you checked which graphical processor Firefox was using ?
  • RedColoredStars @ RedColoredStars:
    after it's open, its a bit slower too at loading pages, but not as noticeable as the initial startup and homepage loading
  • sp3off @ sp3off:
    can make a little difference
    sp3off @ sp3off: can make a little difference