Skip to content

Commit

Permalink
app/ building
Browse files Browse the repository at this point in the history
  • Loading branch information
NezbednikSK committed Dec 7, 2023
1 parent 24b58f4 commit 825f78a
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
app/LibreShop_v*.zip
build/
libreshop_client2.*
Binary file added app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions app/make_zip
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
cd "$(dirname "$0")"/..
make clean
make
cd app
rm -rfv dist LibreShop\ v*
mkdir -v dist
mkdir -pv dist/libreshop

cp -v ../libreshop_client2.dol dist/libreshop/boot.dol
cp -v ../data/default_config.json dist/libreshop/config.json
cp -v ./meta.xml dist/libreshop/meta.xml
cp -v ./icon.png dist/libreshop/icon.png

cd dist
zip -r "../LibreShop_v$(grep VERSION ../../source/config.h | sed "s/#define VERSION \"//; s/\"//").zip" .
cd ..
rm -rfv dist
10 changes: 10 additions & 0 deletions app/meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1">
<name>LibreShop</name>
<version>0.1</version>
<release_date></release_date>
<coder>LibreShop contributors</coder>
<short_description>Download homebrew apps</short_description>
<long_description>LibreShop is an app that lets you download Homebrew apps onto your Wii.
</long_description>
</app>
2 changes: 1 addition & 1 deletion data/acknowledgements.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Hi... The settings aren't implemented yet. Please come back later. (When the software updates, preferably.) In the meantime, if you need to change repositories, please modify the config.json file in the /apps/libreshop directory.
Hi... The settings aren't implemented yet. Please come back later. (When the software updates, preferably.) In the meantime, if you need to change repositories, please modify the config.json file in the /apps/libreshop directory. And, if you find any bugs / unintended behaviour, please report it in our Discord server. (discord.gg/MaSFgbqynK)
3 changes: 2 additions & 1 deletion data/create_acknowledgements
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ IFS= read -d "" acknowledgements << EOF
In the meantime, if you need to change repositories, please modify
the config.json file in the /apps/libreshop directory.
And, if you find any bugs / unintended behaviour, please report it
in our Discord server. (discord.gg/MaSFgbqynK)
EOF

#export "acknowledgements+=
Expand Down
2 changes: 1 addition & 1 deletion source/config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef CONFIG_H
#define CONFIG_H

#define VERSION "0.0dev"
#define VERSION "0.1"

#define APPS_DIR "/apps/libreshop"

Expand Down
4 changes: 2 additions & 2 deletions source/debug.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef DEBUG

// Uncomment if this is a development build
#define DEBUG
//#define DEBUG

// Useful for repo stuff
#define ALWAYS_DEFAULT_CONFIG
//#define ALWAYS_DEFAULT_CONFIG

#endif

Expand Down
12 changes: 6 additions & 6 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ static void *xfb = NULL;
static GXRModeObj *rmode = NULL;

void printheader() {
printf("\x1b[44m");
printf(" \n");
printf(" LibreShop v%s \n", VERSION);
printf(" \n");
printf("\x1b[40m\n");
printf("\x1b[44m");
printf(" \n");
printf(" LibreShop v%s%.*s\n", VERSION, 59 - strlen(VERSION), " ");
printf(" \n");
printf("\x1b[40m\n");
}

void logprint(int type, char *message) {
Expand Down Expand Up @@ -95,7 +95,7 @@ int main(int argc, char **argv) {

printheader();
logprint(0, "Welcome to LibreShop!\n");
#ifdef DEBUG_H
#ifdef DEBUG
logprint(2, "Warning! You are running a DEBUG build.\n");
#endif

Expand Down

0 comments on commit 825f78a

Please sign in to comment.