Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Linux and Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapk00 committed Oct 28, 2019
1 parent 764f1e3 commit 48e5846
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ IDEWorkspaceChecks.plist
*.sln
node_modules
zec-qt-wallet.pro.user.4.10-pre1
zecwallet-lite
zecwallet-lite_plugin_import.cpp
zecwallet-lite_resource.rc
8 changes: 0 additions & 8 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

let c_str = CString::new("OK").unwrap();
Expand Down
9 changes: 6 additions & 3 deletions src/scripts/mkrelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -z $PREV_VERSION ]; then echo "PREV_VERSION is not set"; exit 1; fi

echo -n "Version files.........."
# 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
sed -i "s/${PREV_VERSION}/${APP_VERSION}/g" README.md > /dev/null
Expand All @@ -32,7 +32,8 @@ echo "[OK]"

echo -n "Building..............."
rm -rf bin/zecwallet* > /dev/null
make clean > /dev/null
# Build the lib first
cd lib && make release && cd ..
make -j$(nproc) > /dev/null
echo "[OK]"

Expand Down Expand Up @@ -84,7 +85,7 @@ mkdir -p $debdir/usr/local/bin

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/
cp res/zecwallet-lite.xpm $debdir/usr/share/pixmaps/
Expand Down Expand Up @@ -119,6 +120,8 @@ echo "[OK]"


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
make -j32 > /dev/null
echo "[OK]"
Expand Down

0 comments on commit 48e5846

Please sign in to comment.