notes.txt 883 字节
Newer Older
aaronchen2k2k's avatar
aaronchen2k2k 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
select t1.id,t1.parent_id,t2.*,
 if(find_in_set(parent_id, @pids) > 0, @pids := concat(@pids, ',', id), 0) as ischild
 from (
      select id,parent_id from biz_product t where t.deleted = '0' order by parent_id, id
     ) t1,
     (select @pids := 1) t2

cd internal/comm/grpc/proto
protoc --go_out=. \
  --go_opt=paths=source_relative \
  --go-grpc_out=. \
  --go-grpc_opt=paths=source_relative \
  greater/greater.proto

安装打包工具
npm install --save-dev electron-packager

打包
cd ui && yarn build --dest ../client/ui && cd ..

go-bindata -o=res/res.go -pkg=res res/...
make compile_win64
cd client && npm run package-win64 && cd ..

make compile_linux
cd client && npm run package-linux && cd ..
aaronchen2k2k's avatar
aaronchen2k2k 已提交
27
scp -r client/out/ztf-linux-x64/ 192.168.0.114:/home/aaron
aaronchen2k2k's avatar
aaronchen2k2k 已提交
28 29 30 31 32

make compile_mac
cd client && npm run package-mac && cd ..

client/out/ztf-darwin-x64/ztf.app/Contents/MacOS/ztf