forked from MapComplete/MapComplete
		
	Performance: specify separate editor layer index
This commit is contained in:
		
							parent
							
								
									77af14e9c6
								
							
						
					
					
						commit
						8444cb86bc
					
				
					 7 changed files with 47 additions and 20 deletions
				
			
		|  | @ -8,7 +8,18 @@ then | |||
|   npm run generate:layeroverview | ||||
|   npm run generate:layouts | ||||
| fi | ||||
| vite-node scripts/nsiLogos.ts -- patch | ||||
| echo ''' | ||||
| { | ||||
|     "nsi_logos_server": "https://mapcomplete.org/assets/data/nsi/logos/" | ||||
| } | ||||
| ''' > config.json | ||||
| cat config.json | jq | ||||
| if [ $? -ne 0 ] | ||||
| then | ||||
|   echo "config.json file is invalid, exiting now" | ||||
|   tput bel | ||||
|   exit 0 | ||||
| fi | ||||
| npm run build | ||||
| echo ''' | ||||
| import type { CapacitorConfig } from "@capacitor/cli"; | ||||
|  | @ -22,6 +33,7 @@ const config: CapacitorConfig = { | |||
| export default config; | ||||
| ''' > capacitor.config.ts | ||||
| 
 | ||||
| 
 | ||||
| # copy distribution files | ||||
| rm -rf dist-full | ||||
| mkdir dist-full | ||||
|  | @ -51,6 +63,11 @@ cp -r dist/assets/svg dist-full/assets/ | |||
| cp -r dist/assets/templates dist-full/assets/ | ||||
| cp -r dist/assets/generated/themes/ dist-full/assets/generated/ | ||||
| cp -r dist/assets/themes dist-full/assets/ | ||||
| cp dist/assets/*.js.map dist-full/assets/ | ||||
| rm -rf dist-full/assets/data/nsi | ||||
| rm /home/pietervdvn/git/MapComplete/dist-full/assets/layers/nsi_brand/nsi_brand.json | ||||
| rm /home/pietervdvn/git/MapComplete/dist-full/assets/layers/nsi_operator/nsi_operator.json | ||||
| 
 | ||||
| # mkdir dist-full/assets/generated | ||||
| nvm use | ||||
| 
 | ||||
|  | @ -59,7 +76,8 @@ nvm use | |||
| npx capacitor-assets generate | ||||
| 
 | ||||
| npx cap sync | ||||
| cd android | ||||
| npm run clean | ||||
| 
 | ||||
| echo "All done! Don't forget to click 'gradle sync files' in Android Studio" | ||||
| tput bel | ||||
| tput bel | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue