Skip to content

Commit

Permalink
Merged IntelliJ gitignore, included setup scripts and fixed directory…
Browse files Browse the repository at this point in the history
… structure in Windows
  • Loading branch information
mohamedmujtabaraza committed Apr 13, 2022
1 parent c061b05 commit f0895b2
Show file tree
Hide file tree
Showing 8 changed files with 333 additions and 6 deletions.
86 changes: 84 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,93 @@ dmypy.json
# Pyre type checker
.pyre/



# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser



# Custom
.idea/
example_README.md
files/
output/
!src/lib/
!src/android/lib/
!buildozer.spec
!buildozer.spec
!vocabtoanki.spec
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vocab-to-anki.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified README.md
Binary file not shown.
Binary file modified src/__pycache__/app.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions src/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ def get_root_path(db=False, media=False) -> str:
else: # platform == 'win'
try:
# PyInstaller creates a temp folder and stores path in _MEIPASS
base_path = os.path.join(sys._MEIPASS, get_text("app_title"), 'files')
base_path = os.path.join(sys._MEIPASS, 'files')
if media:
base_path = os.path.join(sys._MEIPASS, get_text("app_title"), 'files', 'media')
base_path = os.path.join(sys._MEIPASS, 'files', 'media')
except Exception:
# base_path = os.path.abspath(".")
base_path = os.path.join(user_home_dir, get_text("app_title"), 'files')
Expand Down
192 changes: 192 additions & 0 deletions vocabtoanki.iss

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions vocabtoanki.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# -*- mode: python ; coding: utf-8 -*-

import sys
import os

from kivy_deps import sdl2, glew

from kivymd import hooks_path as kivymd_hooks_path

path = os.path.abspath(".")

block_cipher = None


a = Analysis(['main.py'],
pathex=[path],
binaries=[],
datas=[('C:/Users/Standard User/miniconda3/envs/vocab-to-anki/Lib/site-packages/user_agent/data', 'user_agent/data/')],
hiddenimports=[],
hookspath=[kivymd_hooks_path],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='vocabtoanki',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None , icon='images\\icon\\vocabtoanki.ico')
coll = COLLECT(exe, Tree('C:\\Users\\Public\\Documents\\projects\\python\\vocab-to-anki\\'),
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=True,
upx_exclude=[],
name='vocabtoanki')

0 comments on commit f0895b2

Please sign in to comment.