File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -185,9 +185,15 @@ gen_hash = env.CommandNoCache(
185185env .add_source_files (env .core_sources , gen_hash )
186186
187187# Generate AES256 script encryption key
188+ encryption_key = os .environ .get ("SCRIPT_AES256_ENCRYPTION_KEY" )
189+ if encryption_key :
190+ print (
191+ "\n *** IMPORTANT: Compiling Godot with custom `SCRIPT_AES256_ENCRYPTION_KEY` set as environment variable."
192+ "\n *** Make sure to use templates compiled with this key when exporting a project with encryption.\n "
193+ )
188194gen_encrypt = env .CommandNoCache (
189195 "script_encryption_key.gen.cpp" ,
190- env .Value (os . environ . get ( "SCRIPT_AES256_ENCRYPTION_KEY" ) ),
196+ env .Value (encryption_key ),
191197 env .Run (core_builders .encryption_key_builder ),
192198)
193199env .add_source_files (env .core_sources , gen_encrypt )
You can’t perform that action at this time.
0 commit comments