import sys
import os
import subprocess
import platform

platform_dict = {}
platform_dict["Darwin"] = "OSX"

sys_n_arch = platform.platform()
sys_n_arch = sys_n_arch.split("-")
system, arch = sys_n_arch[0], sys_n_arch[4]
if system in platform_dict:
    system = platform_dict[system]

version_info = subprocess.check_output("freecadcmd --version", shell=True)
version_info = version_info.decode("utf-8").split(" ")
dev_version = version_info[1]
revision = version_info[3]

print("FreeCAD_{}-{}-{}-glibc2.12-{}-conda".format(dev_version, revision, system, arch))

import sys
import os
import subprocess
import platform

platform_dict = {}
platform_dict["Darwin"] = "OSX"

sys_n_arch = platform.platform()
sys_n_arch = sys_n_arch.split("-")
system, arch = sys_n_arch[0], sys_n_arch[4]
if system in platform_dict:
    system = platform_dict[system]

version_info = subprocess.check_output("freecadcmd --version", shell=True)
version_info = version_info.decode("utf-8").split(" ")
dev_version = version_info[1]
revision = version_info[3]

print("FreeCAD_{}-{}-{}-Conda_glibc2.12-x86_64".format(dev_version, revision, system))

Revert to using current AppImage update info
Revert to using current AppImage update info

https://github.com/FreeCAD/FreeCAD-AppImage/issues/35
  import sys
  import os
  import subprocess
  import platform
  
  platform_dict = {}
  platform_dict["Darwin"] = "OSX"
  
  sys_n_arch = platform.platform()
  sys_n_arch = sys_n_arch.split("-")
  system, arch = sys_n_arch[0], sys_n_arch[4]
  if system in platform_dict:
      system = platform_dict[system]
  
  version_info = subprocess.check_output("freecadcmd --version", shell=True)
  version_info = version_info.decode("utf-8").split(" ")
  dev_version = version_info[1]
  revision = version_info[3]
  
- print("FreeCAD_{}-{}-{}-glibc2.12-{}-conda".format(dev_version, revision, system, arch))
+ print("FreeCAD_{}-{}-{}-Conda_glibc2.12-x86_64".format(dev_version, revision, system))
  
Revert to using current AppImage update info
## Code Before:
import sys
import os
import subprocess
import platform

platform_dict = {}
platform_dict["Darwin"] = "OSX"

sys_n_arch = platform.platform()
sys_n_arch = sys_n_arch.split("-")
system, arch = sys_n_arch[0], sys_n_arch[4]
if system in platform_dict:
    system = platform_dict[system]

version_info = subprocess.check_output("freecadcmd --version", shell=True)
version_info = version_info.decode("utf-8").split(" ")
dev_version = version_info[1]
revision = version_info[3]

print("FreeCAD_{}-{}-{}-glibc2.12-{}-conda".format(dev_version, revision, system, arch))

## Instruction:
Revert to using current AppImage update info
## Code After:
import sys
import os
import subprocess
import platform

platform_dict = {}
platform_dict["Darwin"] = "OSX"

sys_n_arch = platform.platform()
sys_n_arch = sys_n_arch.split("-")
system, arch = sys_n_arch[0], sys_n_arch[4]
if system in platform_dict:
    system = platform_dict[system]

version_info = subprocess.check_output("freecadcmd --version", shell=True)
version_info = version_info.decode("utf-8").split(" ")
dev_version = version_info[1]
revision = version_info[3]

print("FreeCAD_{}-{}-{}-Conda_glibc2.12-x86_64".format(dev_version, revision, system))
