mirror of
https://github.com/jwinterm/monero-generator.git
synced 2026-10-17 05:11:26 +02:00
Coin generation now works
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ if [[ "$OSTYPE" == "msys" ]]; then
|
|||||||
cmake -G "Visual Studio 12 Win64" "..\.."
|
cmake -G "Visual Studio 12 Win64" "..\.."
|
||||||
msbuild.exe Bytecoin.sln /property:Configuration=Release ${COMPILE_ARGS}
|
msbuild.exe Bytecoin.sln /property:Configuration=Release ${COMPILE_ARGS}
|
||||||
else
|
else
|
||||||
make release-static
|
make release-static ${COMPILE_ARGS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $? == "0" ]]; then
|
if [[ $? == "0" ]]; then
|
||||||
|
|||||||
@@ -468,6 +468,18 @@
|
|||||||
"path": "/src/blocks/blocks.dat",
|
"path": "/src/blocks/blocks.dat",
|
||||||
"action": "add",
|
"action": "add",
|
||||||
"source": "/aeon/files/blocks.dat"
|
"source": "/aeon/files/blocks.dat"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "bulk_replace",
|
||||||
|
"find": "monerod",
|
||||||
|
"replace": "aeond",
|
||||||
|
"file_pattern": "*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action": "bulk_replace",
|
||||||
|
"find": "monero-",
|
||||||
|
"replace": "aeon-",
|
||||||
|
"file_pattern": "*"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -27,7 +27,7 @@ function finish {
|
|||||||
}
|
}
|
||||||
trap finish EXIT
|
trap finish EXIT
|
||||||
|
|
||||||
# Generate source code and compile
|
# Generate source code and compile
|
||||||
function generate_coin {
|
function generate_coin {
|
||||||
# Define coin paths
|
# Define coin paths
|
||||||
export BASE_COIN_PATH="${WORK_FOLDERS_PATH}/${__CONFIG_base_coin_name}"
|
export BASE_COIN_PATH="${WORK_FOLDERS_PATH}/${__CONFIG_base_coin_name}"
|
||||||
@@ -80,7 +80,7 @@ function generate_coin {
|
|||||||
cd "${NEW_COIN_PATH}" && patch -s -p1 < "${UPDATES_PATH}" && cd "${SCRIPTS_PATH}"
|
cd "${NEW_COIN_PATH}" && patch -s -p1 < "${UPDATES_PATH}" && cd "${SCRIPTS_PATH}"
|
||||||
chmod -R 755 ${NEW_COIN_PATH}
|
chmod -R 755 ${NEW_COIN_PATH}
|
||||||
cp ${TEMP_PATH}/src/blocks/* ${NEW_COIN_PATH}/src/blocks
|
cp ${TEMP_PATH}/src/blocks/* ${NEW_COIN_PATH}/src/blocks
|
||||||
|
|
||||||
bash "${SCRIPTS_PATH}/compile.sh" -c "${COMPILE_ARGS}" -z
|
bash "${SCRIPTS_PATH}/compile.sh" -c "${COMPILE_ARGS}" -z
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ Reads a config file and creates and compiles Cryptonote coin. "config.json" as d
|
|||||||
-f config file
|
-f config file
|
||||||
-c compile arguments
|
-c compile arguments
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# A POSIX variable
|
# A POSIX variable
|
||||||
OPTIND=1 # Reset in case getopts has been used previously in the shell.
|
OPTIND=1 # Reset in case getopts has been used previously in the shell.
|
||||||
@@ -125,7 +125,7 @@ if [[ "${CONFIG_FILE}" != /* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f ${CONFIG_FILE} ]; then
|
if [ ! -f ${CONFIG_FILE} ]; then
|
||||||
echo "ERROR: config file does not exits"
|
echo "ERROR: config file does not exits"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ def findReplace(directory, find, replace, filePattern):
|
|||||||
s = s.decode('utf-8', errors='ignore').encode('utf-8').replace(find, replace)
|
s = s.decode('utf-8', errors='ignore').encode('utf-8').replace(find, replace)
|
||||||
with open(filepath, "w") as f:
|
with open(filepath, "w") as f:
|
||||||
f.write(s)
|
f.write(s)
|
||||||
os.chmod(filepath, int(str(oct(stats.st_mode))[3:], 8))
|
|
||||||
|
|
||||||
def text_creator(change):
|
def text_creator(change):
|
||||||
replace_text = ''
|
replace_text = ''
|
||||||
@@ -125,6 +124,7 @@ if not (set(required_extensions) <= set(loaded_extensions)):
|
|||||||
|
|
||||||
for file in extension['files']:
|
for file in extension['files']:
|
||||||
# Bulk replace text
|
# Bulk replace text
|
||||||
|
|
||||||
if 'action' in file.keys() and file['action'] == 'bulk_replace':
|
if 'action' in file.keys() and file['action'] == 'bulk_replace':
|
||||||
if 'find' in file.keys() and 'replace' in file.keys() and 'file_pattern' in file.keys():
|
if 'find' in file.keys() and 'replace' in file.keys() and 'file_pattern' in file.keys():
|
||||||
sys.__stdout__.write("- Bulk replacing " + file['find'] + " with " + file['replace'] + "\n")
|
sys.__stdout__.write("- Bulk replacing " + file['find'] + " with " + file['replace'] + "\n")
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export EXTENSIONS_PATH="${SCRIPTS_PATH}/extensions"
|
|||||||
export TESTS_PATH="${SCRIPTS_PATH}/tests"
|
export TESTS_PATH="${SCRIPTS_PATH}/tests"
|
||||||
export CONFIG_PATH="${SCRIPTS_PATH}"
|
export CONFIG_PATH="${SCRIPTS_PATH}"
|
||||||
export TEMP_PATH="${WORK_FOLDERS_PATH}/tmp"
|
export TEMP_PATH="${WORK_FOLDERS_PATH}/tmp"
|
||||||
export UPDATES_PATH="${WORK_FOLDERS_PATH}/updates.dashcoin.patch"
|
export UPDATES_PATH="${WORK_FOLDERS_PATH}/updates.forknote.monero.patch"
|
||||||
export BASH_CONFIG="${WORK_FOLDERS_PATH}/config.cfg"
|
export BASH_CONFIG="${WORK_FOLDERS_PATH}/config.cfg"
|
||||||
|
|
||||||
export CUSTOM_CUSTOMIZE_SCRIPT_PATH="${SCRIPTS_PATH}/custom/customize.sh"
|
export CUSTOM_CUSTOMIZE_SCRIPT_PATH="${SCRIPTS_PATH}/custom/customize.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user