# Russia cubes **Repository Path**: yanmengs/russia-cubes ## Basic Information - **Project Name**: Russia cubes - **Description**: 用vue+vite+electron构建的纯前端俄罗斯方块 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-27 - **Last Updated**: 2024-07-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### github的重制版,基本一样,没用路由和多了些注释而已 [https://github.com/yanmengssss/Russia-Block-Reset-.git ](http://) ### 这里是没有打包过的,具体打包教程看我的博客 [https://blog.csdn.net/m0_73459939/article/details/140742301](http://) ### 完整俄罗斯方块教程看我的博客 [https://blog.csdn.net/m0_73459939/article/details/140774406](http://) ### 首先npm install 下载 记得下载cnpm,因为electron用npm和pnpm无法下载electron ```sh npm install ``` ```sh npm install cnpm ``` ```sh cnpm install electron --save-dev ``` 打包为dist ``` npm run build ``` 运行h5: ``` npm run dev ``` electron运行: ``` npm run start ``` electron运行和h5是互相独立的,但是得打包为dist才能运行electron。 打包electron为exe: ``` npm run exe-build ```