File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -72,18 +72,10 @@ void main(string[] args) {
72
72
auto dir = apk.directory();
73
73
74
74
if (! file.exists(" lib/" )) {
75
- try {
76
- file.mkdir(" lib/" );
77
- } catch (Throwable) {
78
- writeln(" Cannot create lib/ folder. Hopefully everything still works. (Docker?)" );
79
- }
75
+ file.mkdir(" lib/" );
80
76
}
81
77
if (! file.exists(libraryPath)) {
82
- try {
83
- file.mkdir(libraryPath);
84
- } catch (Throwable) {
85
- writeln(" Cannot create libraries folder folder. Hopefully everything still works. (Docker?)" );
86
- }
78
+ file.mkdir(libraryPath);
87
79
}
88
80
file.write(coreADIPath, apk.expand(dir[coreADIPath]));
89
81
file.write(SSCPath, apk.expand(dir[SSCPath]));
@@ -113,6 +105,8 @@ void main(string[] args) {
113
105
}
114
106
115
107
auto s = new HttpServer((ref ctx) {
108
+ ctx.response.addHeader(" Implementation-Version" , anisetteServerBranding ~ " " ~ anisetteServerVersion);
109
+
116
110
auto req = ctx.request;
117
111
auto res = ctx.response;
118
112
if (req.url == " /version" ) {
Original file line number Diff line number Diff line change 1
1
module constants ;
2
2
3
+ enum anisetteServerBranding = " anisette-server-provision" ;
3
4
enum anisetteServerVersion = " 1.2.2" ;
4
5
enum nativesUrl = " https://apps.mzstatic.com/content/android-apple-music-apk/applemusic.apk" ;
You can’t perform that action at this time.
0 commit comments