Skip to content

Commit 825f78a

Browse files
committed
app/ building
1 parent 24b58f4 commit 825f78a

File tree

9 files changed

+43
-11
lines changed

9 files changed

+43
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
app/LibreShop_v*.zip
2+
build/
3+
libreshop_client2.*

app/icon.png

4.47 KB
Loading

app/make_zip

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
cd "$(dirname "$0")"/..
3+
make clean
4+
make
5+
cd app
6+
rm -rfv dist LibreShop\ v*
7+
mkdir -v dist
8+
mkdir -pv dist/libreshop
9+
10+
cp -v ../libreshop_client2.dol dist/libreshop/boot.dol
11+
cp -v ../data/default_config.json dist/libreshop/config.json
12+
cp -v ./meta.xml dist/libreshop/meta.xml
13+
cp -v ./icon.png dist/libreshop/icon.png
14+
15+
cd dist
16+
zip -r "../LibreShop_v$(grep VERSION ../../source/config.h | sed "s/#define VERSION \"//; s/\"//").zip" .
17+
cd ..
18+
rm -rfv dist

app/meta.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<app version="1">
3+
<name>LibreShop</name>
4+
<version>0.1</version>
5+
<release_date></release_date>
6+
<coder>LibreShop contributors</coder>
7+
<short_description>Download homebrew apps</short_description>
8+
<long_description>LibreShop is an app that lets you download Homebrew apps onto your Wii.
9+
</long_description>
10+
</app>

data/acknowledgements.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.
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. And, if you find any bugs / unintended behaviour, please report it in our Discord server. (discord.gg/MaSFgbqynK)

data/create_acknowledgements

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ IFS= read -d "" acknowledgements << EOF
1111
In the meantime, if you need to change repositories, please modify
1212
the config.json file in the /apps/libreshop directory.
1313
14-
14+
And, if you find any bugs / unintended behaviour, please report it
15+
in our Discord server. (discord.gg/MaSFgbqynK)
1516
EOF
1617

1718
#export "acknowledgements+=

source/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CONFIG_H
22
#define CONFIG_H
33

4-
#define VERSION "0.0dev"
4+
#define VERSION "0.1"
55

66
#define APPS_DIR "/apps/libreshop"
77

source/debug.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#ifndef DEBUG
22

33
// Uncomment if this is a development build
4-
#define DEBUG
4+
//#define DEBUG
55

66
// Useful for repo stuff
7-
#define ALWAYS_DEFAULT_CONFIG
7+
//#define ALWAYS_DEFAULT_CONFIG
88

99
#endif
1010

source/main.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ static void *xfb = NULL;
2626
static GXRModeObj *rmode = NULL;
2727

2828
void printheader() {
29-
printf("\x1b[44m");
30-
printf(" \n");
31-
printf(" LibreShop v%s \n", VERSION);
32-
printf(" \n");
33-
printf("\x1b[40m\n");
29+
printf("\x1b[44m");
30+
printf(" \n");
31+
printf(" LibreShop v%s%.*s\n", VERSION, 59 - strlen(VERSION), " ");
32+
printf(" \n");
33+
printf("\x1b[40m\n");
3434
}
3535

3636
void logprint(int type, char *message) {
@@ -95,7 +95,7 @@ int main(int argc, char **argv) {
9595

9696
printheader();
9797
logprint(0, "Welcome to LibreShop!\n");
98-
#ifdef DEBUG_H
98+
#ifdef DEBUG
9999
logprint(2, "Warning! You are running a DEBUG build.\n");
100100
#endif
101101

0 commit comments

Comments
 (0)