mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	Add minified files
This commit is contained in:
		| @@ -9,7 +9,7 @@ | ||||
|  | ||||
|   <link href="css/bootstrap.min.css" rel="stylesheet"> | ||||
|   <link href="css/bootstrap-slider.min.css" rel="stylesheet"> | ||||
|   <link href="css/mpd.min.css" rel="stylesheet"> | ||||
|   <link href="css/mpd.css" rel="stylesheet"> | ||||
|   <link href="assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> | ||||
|   <script src="js/modernizr-custom.min.js"></script> | ||||
|    | ||||
| @@ -689,6 +689,6 @@ | ||||
|   <script src="js/bootstrap.bundle.min.js"></script> | ||||
|   <script src="js/bootstrap-slider.min.js"></script> | ||||
|   <script src="js/bootstrap-notify.min.js"></script> | ||||
|   <script src="js/mpd.min.js"></script> | ||||
|   <script src="js/mpd.js"></script> | ||||
|  </body> | ||||
| </html> | ||||
|   | ||||
| @@ -7,7 +7,7 @@ | ||||
|   <meta name="author" content="mail@jcgames.de"> | ||||
|   <title>myMPD: Local Player</title> | ||||
|   <link href="css/bootstrap.min.css" rel="stylesheet"> | ||||
|   <link href="css/mpd.min.css" rel="stylesheet"> | ||||
|   <link href="css/mpd.css" rel="stylesheet"> | ||||
|   <link href="assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> | ||||
|   <meta name="apple-mobile-web-app-capable" content="yes" /> | ||||
|   <meta name="apple-mobile-web-app-status-bar-style" content="black"/> | ||||
| @@ -29,6 +29,6 @@ | ||||
|       </div> | ||||
|     </div> | ||||
|   </main> | ||||
|   <script type="text/javascript" src="js/player.min.js"></script>   | ||||
|   <script type="text/javascript" src="js/player.js"></script>   | ||||
| </body> | ||||
| </html> | ||||
|   | ||||
| @@ -1,14 +1,5 @@ | ||||
| #/bin/bash | ||||
|  | ||||
| rm htdocs/js/player.min.js | ||||
| cp -l htdocs/js/player.js htdocs/js/player.min.js | ||||
|  | ||||
| rm htdocs/js/mpd.min.js | ||||
| cp -l htdocs/js/mpd.js htdocs/js/mpd.min.js | ||||
|  | ||||
| rm htdocs/css/mpd.min.css | ||||
| cp -l htdocs/css/mpd.css htdocs/css/mpd.min.css     | ||||
|  | ||||
| [ -d debug ] || mkdir debug | ||||
| cd debug | ||||
| cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG .. | ||||
|   | ||||
							
								
								
									
										14
									
								
								mkrelease.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								mkrelease.sh
									
									
									
									
									
								
							| @@ -2,17 +2,21 @@ | ||||
|  | ||||
| if [ -f buildtools/closure-compiler.jar ] | ||||
| then | ||||
|   rm -f htdocs/js/player.min.js | ||||
|   [ htdocs/js/player.js -nt htdocs/js/player.min.js ] && \ | ||||
|     java -jar buildtools/closure-compiler.jar htdocs/js/player.js > htdocs/js/player.min.js | ||||
|  | ||||
|   rm -f htdocs/js/mpd.min.js | ||||
|   [ htdocs/js/mpd.js -nt  htdocs/js/mpd.min.js ] && \ | ||||
|     java -jar buildtools/closure-compiler.jar htdocs/js/mpd.js > htdocs/js/mpd.min.js | ||||
| else | ||||
|   cp htdocs/js/player.js htdocs/js/player.min.js | ||||
|   cp htdocs/js/mpd.js  htdocs/js/mpd.min.js | ||||
| fi | ||||
|    | ||||
| if [ -f buildtools/closure-stylesheets.jar ] | ||||
| then     | ||||
|   rm -f htdocs/css/mpd.min.css | ||||
|   [ htdocs/css/mpd.css -nt htdocs/css/mpd.min.css ] && \ | ||||
|     java -jar buildtools/closure-stylesheets.jar htdocs/css/mpd.css > htdocs/css/mpd.min.css | ||||
| else | ||||
|   cp htdocs/css/mpd.css htdocs/css/mpd.min.css     | ||||
| fi | ||||
|  | ||||
| [ -d release ] || mkdir release | ||||
| @@ -20,3 +24,5 @@ cd release | ||||
| cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=RELEASE .. | ||||
| make | ||||
| make install | ||||
| sed -i -e 's/mpd\.css/mpd\.min\.css/' -e 's/mpd\.js/mpd\.min\.js/' /usr/share/mympd/htdocs/index.html | ||||
| sed -i -e 's/mpd\.css/mpd\.min\.css/' -e 's/player\.js/player\.min\.js/' /usr/share/mympd/htdocs/player.html | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation