Linux and Windows build
This commit is contained in:
parent
764f1e315d
commit
48e5846899
|
@ -37,3 +37,6 @@ IDEWorkspaceChecks.plist
|
||||||
*.sln
|
*.sln
|
||||||
node_modules
|
node_modules
|
||||||
zec-qt-wallet.pro.user.4.10-pre1
|
zec-qt-wallet.pro.user.4.10-pre1
|
||||||
|
zecwallet-lite
|
||||||
|
zecwallet-lite_plugin_import.cpp
|
||||||
|
zecwallet-lite_resource.rc
|
||||||
|
|
|
@ -105,14 +105,6 @@ pub extern fn litelib_initialize_new_from_phrase(dangerous: bool, server: *const
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let seed = match lightclient.do_seed_phrase() {
|
|
||||||
Ok(s) => s.dump(),
|
|
||||||
Err(e) => {
|
|
||||||
let e_str = CString::new(format!("Error: {}", e)).unwrap();
|
|
||||||
return e_str.into_raw();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
LIGHTCLIENT.lock().unwrap().replace(Some(Arc::new(lightclient)));
|
LIGHTCLIENT.lock().unwrap().replace(Some(Arc::new(lightclient)));
|
||||||
|
|
||||||
let c_str = CString::new("OK").unwrap();
|
let c_str = CString::new("OK").unwrap();
|
||||||
|
|
|
@ -9,7 +9,7 @@ if [ -z $PREV_VERSION ]; then echo "PREV_VERSION is not set"; exit 1; fi
|
||||||
|
|
||||||
echo -n "Version files.........."
|
echo -n "Version files.........."
|
||||||
# Replace the version number in the .pro file so it gets picked up everywhere
|
# Replace the version number in the .pro file so it gets picked up everywhere
|
||||||
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" zec-qt-wallet.pro > /dev/null
|
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" zecwallet-lite.pro > /dev/null
|
||||||
|
|
||||||
# Also update it in the README.md
|
# Also update it in the README.md
|
||||||
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" README.md > /dev/null
|
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" README.md > /dev/null
|
||||||
|
@ -32,7 +32,8 @@ echo "[OK]"
|
||||||
|
|
||||||
echo -n "Building..............."
|
echo -n "Building..............."
|
||||||
rm -rf bin/zecwallet* > /dev/null
|
rm -rf bin/zecwallet* > /dev/null
|
||||||
make clean > /dev/null
|
# Build the lib first
|
||||||
|
cd lib && make release && cd ..
|
||||||
make -j$(nproc) > /dev/null
|
make -j$(nproc) > /dev/null
|
||||||
echo "[OK]"
|
echo "[OK]"
|
||||||
|
|
||||||
|
@ -84,7 +85,7 @@ mkdir -p $debdir/usr/local/bin
|
||||||
|
|
||||||
cat src/scripts/control | sed "s/RELEASE_VERSION/$APP_VERSION/g" > $debdir/DEBIAN/control
|
cat src/scripts/control | sed "s/RELEASE_VERSION/$APP_VERSION/g" > $debdir/DEBIAN/control
|
||||||
|
|
||||||
cp zecwallet $debdir/usr/local/bin/
|
cp zecwallet-lite $debdir/usr/local/bin/
|
||||||
|
|
||||||
mkdir -p $debdir/usr/share/pixmaps/
|
mkdir -p $debdir/usr/share/pixmaps/
|
||||||
cp res/zecwallet-lite.xpm $debdir/usr/share/pixmaps/
|
cp res/zecwallet-lite.xpm $debdir/usr/share/pixmaps/
|
||||||
|
@ -119,6 +120,8 @@ echo "[OK]"
|
||||||
|
|
||||||
|
|
||||||
echo -n "Building..............."
|
echo -n "Building..............."
|
||||||
|
# Build the lib first
|
||||||
|
cd lib && make winrelease && cd ..
|
||||||
x86_64-w64-mingw32.static-qmake-qt5 zecwallet-lite.pro CONFIG+=release > /dev/null
|
x86_64-w64-mingw32.static-qmake-qt5 zecwallet-lite.pro CONFIG+=release > /dev/null
|
||||||
make -j32 > /dev/null
|
make -j32 > /dev/null
|
||||||
echo "[OK]"
|
echo "[OK]"
|
||||||
|
|
Loading…
Reference in New Issue