Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It depends on cleanAssets, ensuring they are always fresh
- Loading branch information
Showing
2 changed files
with
45 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,48 @@ task cleanAssets(type: Delete) { | |
delete 'src/main/assets' | ||
} | ||
|
||
task copyAssets { | ||
dependsOn 'cleanAssets' | ||
mkdir "src/main/assets" | ||
|
||
def mtAssetsFolder = "src/main/assets/Minetest" | ||
def projRoot = "../.." | ||
def gameToCopy = "minetest_game" | ||
|
||
doLast { | ||
mkdir "${mtAssetsFolder}" | ||
mkdir "${mtAssetsFolder}/client" | ||
mkdir "${mtAssetsFolder}/fonts" | ||
mkdir "${mtAssetsFolder}/games" | ||
mkdir "${mtAssetsFolder}/media" | ||
|
||
copy { | ||
from "${projRoot}/minetest.conf.example", "${projRoot}/README.md" into mtAssetsFolder | ||
} | ||
copy { | ||
from "${projRoot}/doc/lgpl-2.1.txt" into "${mtAssetsFolder}/LICENSE.txt" | ||
} | ||
copy { | ||
from "${projRoot}/builtin" into "${mtAssetsFolder}/builtin" | ||
} | ||
copy { | ||
from "${projRoot}/client/shaders" into "${mtAssetsFolder}/client/shaders" | ||
} | ||
copy { | ||
from "${projRoot}/fonts" include "*.ttf" into "${mtAssetsFolder}/fonts" | ||
} | ||
copy { | ||
from "${projRoot}/games/${gameToCopy}" into "${mtAssetsFolder}/games/${gameToCopy}" | ||
} | ||
copy { | ||
from "${projRoot}/po" into "${mtAssetsFolder}/po" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
MoNTE48
Contributor
|
||
} | ||
copy { | ||
from "${projRoot}/textures" into "${mtAssetsFolder}/textures" | ||
} | ||
} | ||
} | ||
|
||
task cleanIconv(type: Delete) { | ||
delete 'deps/libiconv' | ||
} | ||
|
@@ -118,8 +160,8 @@ task cleanGMP(type: Delete) { | |
} | ||
|
||
task cleanAll(type: Delete, dependsOn: [clean, cleanAssets, cleanIconv, | ||
cleanFreetype, cleanIrrlicht, cleanLevelDB, cleanSQLite3, cleanCURL, | ||
cleanOpenSSL, cleanOpenAL, cleanOgg, cleanGMP]) { | ||
cleanFreetype, cleanIrrlicht, cleanLevelDB, cleanSQLite3, cleanCURL, | ||
cleanOpenSSL, cleanOpenAL, cleanOgg, cleanGMP]) { | ||
delete 'deps' | ||
delete 'gen' | ||
delete 'libs' | ||
|
@nerzhul @stujones11 @MoNTE48 Does Android version need this translation folder? Android version doesn't even use Gettext AFAIK. Even if it does, we should copy
locale
folder (compiled translation).