提交 8e768976 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

fix issues

上级 49d6464d
......@@ -29,31 +29,43 @@ prepare_res:
@go-bindata -o=res/res.go -pkg=res res/...
@rm -rf ${BIN_DIR}
compile_all: compile_win64 compile_win32 compile_linux compile_mac
compile_all: build_win64 compile_win32 compile_linux compile_mac
build_win64: compile_win64 package_win64_client
compile_win64:
@echo 'start compile win64'
@CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 \
${BUILD_CMD} -x -v -ldflags "-s -w" \
-o ${BIN_WIN32}${BINARY}.exe ${MAIN_FILE}
package_win64_client:
cd client && npm run package-win64 && cd ..
build_win32: compile_win32 package_win64_client
compile_win32:
@echo 'start compile win32'
@CGO_ENABLED=1 CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ GOOS=windows GOARCH=386 \
${BUILD_CMD} -x -v -ldflags "-s -w" \
-o ${BIN_WIN32}${BINARY}.exe ${MAIN_FILE}
package_win32_client:
cd client && npm run package-win32 && cd ..
build_linux: compile_linux package_linux_client
compile_linux:
@echo 'start compile linux'
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 CC=/usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-gcc CXX=/usr/local/gcc-4.8.1-for-linux64/bin/x86_64-pc-linux-g++ \
${BUILD_CMD}
-o ${BIN_LINUX}${BINARY} ${MAIN_FILE}
package_linux_client:
cd client && npm run package-linux && cd ..
build_mac: compile_mac package_mac_client
compile_mac:
@echo 'start compile mac'
@CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 \
${BUILD_CMD} \
-o ${BIN_MAC}${BINARY} ${MAIN_FILE}
package_mac_client:
cd client && npm run package-mac && cd ..
copy_files:
@echo 'start copy files'
......
......@@ -237,7 +237,7 @@ export default defineComponent({
filerValue.value = data.val
if (!currProduct.value.id && filerType.value !== 'workspace') {
filerType.value = ''
filerType.value = 'workspace'
filerValue.value = ''
}
......@@ -273,7 +273,7 @@ export default defineComponent({
await loadScripts()
}
// only do it when switch from another pages, otherwise will called by watching currProduct method.
if (currProduct.value.id && filerValue.value.length === 0) initData()
if (filerValue.value.length === 0) initData()
const expandedKeys = ref<string[]>([]);
const getOpenKeys = (treeNode, isAll) => {
......
......@@ -23,6 +23,9 @@ go-bindata -o=res/res.go -pkg=res res/...
make compile_win64
cd client && npm run package-win64 && cd ..
make compile_win32
cd client && npm run package-win32 && cd ..
make compile_linux
cd client && npm run package-linux && cd ..
scp -r client/out/ztf-linux-x64/ 192.168.0.114:/home/aaron
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册