Commit ac1a3380 authored by 楊慶堂's avatar 楊慶堂

增加打包 jar 的設定

https://stackoverflow.com/questions/2025607/how-to-create-a-jar-file-or-export-jar-on-intellij-like-eclipse-java-archive-e
For Intellij IDEA version 11.0.2
File | Project Structure | Artifacts then you should press alt+insert or click the plus icon and create new artifact choose --> jar --> From modules with dependencies.
Next goto Build | Build artifacts --> choose your artifact.
parent d7aefb4b
out
out/
.idea/vcs.xml
.idea/workspace.xml
.idea/inspectionProfiles/
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
<component name="ArtifactManager">
<artifact type="jar" name="Lottery:jar">
<output-path>$PROJECT_DIR$/out/artifacts/Lottery_jar</output-path>
<root id="archive" name="Lottery.jar">
<element id="module-output" name="Lottery" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-test.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7.jar" path-in-jar="/" />
<element id="extracted-dir" path="$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8.jar" path-in-jar="/" />
</root>
</artifact>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ArtifactsWorkspaceSettings">
<artifacts-to-build>
<artifact name="Lottery:jar" />
</artifacts-to-build>
</component>
<component name="ChangeListManager">
<list default="true" id="598efb3a-f3ab-41da-b56b-911a4a4ac03a" name="Default" comment="" />
<list default="true" id="598efb3a-f3ab-41da-b56b-911a4a4ac03a" name="Default" comment="">
<change afterPath="$PROJECT_DIR$/.idea/artifacts/Lottery_jar.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/META-INF/MANIFEST.MF" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/out/" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
......@@ -33,7 +43,7 @@
<file leaf-file-name="RandomSelector.kt" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/src/io/github/apollozhu/lottery/prize/utils/RandomSelector.kt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<state relative-caret-position="358">
<caret line="36" selection-start-line="36" selection-end-line="36" />
</state>
</provider>
......@@ -60,6 +70,9 @@
<find>&quot;GBK&quot;</find>
</findStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
......@@ -75,11 +88,12 @@
</option>
</component>
<component name="ProjectFrameBounds" extendedState="6">
<option name="x" value="-1893" />
<option name="y" value="33" />
<option name="width" value="1850" />
<option name="height" value="1032" />
<option name="x" value="325" />
<option name="y" value="23" />
<option name="width" value="1920" />
<option name="height" value="877" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectView">
<navigator proportions="" version="1">
<foldersAlwaysOnTop value="true" />
......@@ -88,67 +102,6 @@
<pane id="ProjectPane">
<subPane>
<expand>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
<item name="lottery" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
<item name="settings" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="prize" type="462c0819:PsiDirectoryNode" />
<item name="utils" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="Raffle" type="462c0819:PsiDirectoryNode" />
<item name="src" type="462c0819:PsiDirectoryNode" />
<item name="apollozhu" type="462c0819:PsiDirectoryNode" />
<item name="swing" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Raffle" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
......@@ -168,9 +121,9 @@
</panes>
</component>
<component name="PropertiesComponent">
<property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.0" />
<property name="project.structure.last.edited" value="Artifacts" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.2" />
</component>
<component name="RecentsManager">
<key name="CopyClassDialog.RECENTS_KEY">
......@@ -264,8 +217,7 @@
<servers />
</component>
<component name="ToolWindowManager">
<frame x="-1920" y="23" width="1920" height="1057" extended-state="6" />
<editor active="true" />
<frame x="0" y="23" width="1440" height="877" extended-state="6" />
<layout>
<window_info anchor="right" id="Palette" />
<window_info anchor="bottom" id="TODO" order="6" />
......@@ -276,17 +228,17 @@
<window_info anchor="bottom" id="Event Log" side_tool="true" />
<window_info anchor="right" id="Maven Projects" />
<window_info anchor="bottom" id="Run" order="2" weight="0.26770833" />
<window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
<window_info anchor="bottom" id="Version Control" />
<window_info anchor="bottom" id="Terminal" />
<window_info id="Capture Tool" />
<window_info id="Designer" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.185836" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24964234" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
<window_info id="UI Designer" />
<window_info anchor="right" id="Theme Preview" />
<window_info active="true" anchor="bottom" id="Debug" order="3" visible="true" weight="0.4" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.4923077" />
<window_info id="Favorites" side_tool="true" />
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
......@@ -479,7 +431,7 @@
</entry>
<entry file="file://$PROJECT_DIR$/src/io/github/apollozhu/lottery/prize/utils/RandomSelector.kt">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="390">
<state relative-caret-position="358">
<caret line="36" selection-start-line="36" selection-end-line="36" />
</state>
</provider>
......@@ -490,10 +442,12 @@
<state key="ArtifactsStructureConfigurable.UI">
<settings>
<artifact-editor />
<last-edited>Lottery:jar</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
<option value="0.2" />
<option value="0.5" />
</list>
</option>
</splitter-proportions>
......@@ -536,7 +490,7 @@
</state>
<state key="ModuleStructureConfigurable.UI">
<settings>
<last-edited>Raffle</last-edited>
<last-edited>Lottery</last-edited>
<splitter-proportions>
<option name="proportions">
<list>
......
# Lottery | 年会抽奖软件
An app for my dad
## 系统要求
- JRE (Java Runtime Environment,Java运行环境) 1.8.0 及以上: [下载](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)(如已安装可跳过)
> 详见 [Oracle JDK 8 and JRE 8 Certified System Configurations](http://www.oracle.com/technetwork/java/javase/certconfig-2095354.html)(英文)
## 使用方法
下载 Lottery.jar: [点我下载](https://github.com/ApolloZhu/Lottery/releases/download/1.0.0/Lottery.jar)
双击下载好的 [Lottery.jar](https://github.com/ApolloZhu/Lottery/releases/download/1.0.0/Lottery.jar) 打开,按照界面提示操作
### 更新软件
前往 [更新网页](https://github.com/ApolloZhu/Lottery/releases),点击最新版(第一个)Downloads 里的 [Lottery.jar](https://github.com/ApolloZhu/Lottery/releases/download/1.0.0/Lottery.jar) 下载
----
## 开发信息
![Kotlin](https://img.shields.io/badge/开发语言-Kotlin-F18E33.svg) ![Java 8](https://img.shields.io/badge/Java-8-b07219.svg) [![Dependent of https://github.com/ApolloZhu/io.github.apollozhu](https://img.shields.io/badge/依赖-io.github.apollozhu-brightgreen.svg)](https://github.com/ApolloZhu/io.github.apollozhu)
本软件使用 [GNU General Public License v3.0](https://github.com/ApolloZhu/Lottery/blob/master/LICENSE) 进行许可
> 总开发时长:共 23 小时 18 分钟
Manifest-Version: 1.0
Main-Class: io.github.apollozhu.lottery.MainKt
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment