Automatically update code-credits.txt

master
Skylar Ittner 5 years ago
parent a008cb298b
commit 16b67f0887

@ -44,6 +44,7 @@
<splash src="res/android/drawable-port-xxxhdpi/screen.png" density="port-xxxhdpi"/> <splash src="res/android/drawable-port-xxxhdpi/screen.png" density="port-xxxhdpi"/>
<hook type="before_prepare" src="scripts/get_dependencies.sh" /> <hook type="before_prepare" src="scripts/get_dependencies.sh" />
<hook type="before_prepare" src="scripts/update_credits.sh" />
<hook type="after_prepare" src="scripts/clean_node_modules.sh" /> <hook type="after_prepare" src="scripts/clean_node_modules.sh" />
</platform> </platform>

@ -10,9 +10,9 @@ echo "Size before: $(du -sh | cut -d ' ' -f 1)"
rm -r {.bin,.yarn-integrity} rm -r {.bin,.yarn-integrity}
rm -r ./{ansicolors,buffer-from,canvas-renderer,cardinal,concat-stream,core-util-is,csscolorparser,dom7} rm -r ./{ansicolors,buffer-from,canvas-renderer,cardinal,commander,concat-stream,core-util-is,csscolorparser,dom7}
rm -r ./{earcut,esm,esprima,geojson-vt,gl-matrix,grid-index,ieee754,inherits,isarray,kdbush,@mapbox,minimist,murmurhash-js} rm -r ./{earcut,esm,esprima,geojson-vt,gl-matrix,grid-index,ieee754,inherits,isarray,kdbush,@mapbox,minimist,murmurhash-js}
rm -r ./{path-to-regexp,pbf,potpack,process-nextick-args,protocol-buffers-schema,quickselect} rm -r ./{path-to-regexp,pbf,point-geometry,potpack,process-nextick-args,protocol-buffers-schema,quickselect}
rm -r ./{readable-stream,redeyed,resolve-protobuf-schema,rw,safe-buffer,sharkdown,split,ssr-window,string_decoder} rm -r ./{readable-stream,redeyed,resolve-protobuf-schema,rw,safe-buffer,sharkdown,split,ssr-window,string_decoder}
rm -r ./{supercluster,template7,text-encoding,through,tinyqueue,topojson-client,ts-custom-error,typedarray} rm -r ./{supercluster,template7,text-encoding,through,tinyqueue,topojson-client,ts-custom-error,typedarray}
rm -r ./{util-deprecate,vector-tile,vt-pbf,whatwg-fetch,wgs84} rm -r ./{util-deprecate,vector-tile,vt-pbf,whatwg-fetch,wgs84}

@ -0,0 +1,8 @@
#!/bin/bash
echo "Updating www/code-credits.txt automatically, this will take a moment..."
cd www
yarn licenses generate-disclaimer > code-credits.txt
cd ..
yarn licenses generate-disclaimer >> www/code-credits.txt

@ -1,9 +1,7 @@
<html> <h1>
<body>
<h1>
Art Credits Art Credits
</h1> </h1>
<p> <p>
Map data copyright Map data copyright
<a href="http://www.openmaptiles.org/"> <a href="http://www.openmaptiles.org/">
OpenMapTiles OpenMapTiles
@ -13,9 +11,9 @@
OpenStreetMap contributors OpenStreetMap contributors
</a> </a>
. .
</p> </p>
<hr/> <hr/>
<p> <p>
<a href="https://github.com/seiyria/gameicons-font"> <a href="https://github.com/seiyria/gameicons-font">
Game Icons Font Game Icons Font
</a> </a>
@ -24,8 +22,8 @@
@seiyria @seiyria
</a> </a>
) )
</p> </p>
<p> <p>
<a href="https://game-icons.net"> <a href="https://game-icons.net">
Game icons Game icons
</a> </a>
@ -88,6 +86,4 @@
- GeneralAce135 - GeneralAce135
<br/> <br/>
- Zajkonur - Zajkonur
</p> </p>
</body>
</html>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save